public void Setup() { String uri = "tcp://localhost:4003"; MainInheritanceListener implFactory = new MainInheritanceListener(); listener = InheritanceHelper.NewListener(uri, null, implFactory); listener.TransportControl(TransportConsts.START_AND_WAIT_UP, 4000); MainInheritanceClient client = new MainInheritanceClient(); server = InheritanceHelper.NewServer(uri, null, client); // server._TransportControl(Etch.Transport.TransportConsts.START_AND_WAIT_UP, 4000); server._StartAndWaitUp(4000); }
/// /// <summary>Main for InheritanceClient</summary> /// <param name="args"></param> /// public static void Main(String[] args) { string uri = "tcp://localhost:4001"; if (args.Length > 0) { uri = args[0]; } MainInheritanceClient implFactory = new MainInheritanceClient(); RemoteInheritanceServer server = InheritanceHelper.NewServer(uri, null, implFactory); server._TransportControl(TransportConsts.START_AND_WAIT_UP, 4000); // Insert Your Code Here //--------------------------------------------------------------------- server._TransportControl(TransportConsts.STOP_AND_WAIT_DOWN, 4000); }
/// /// <summary>Constructs the ImplInheritanceClient.</summary> /// /// <param name=server></param> /// public ImplInheritanceClient(RemoteInheritanceServer server) { this.server = server; }
/// /// <summary>Return a new instance of InheritanceClient.</summary> /// @param server /// public InheritanceClient NewInheritanceClient(RemoteInheritanceServer server) { return(new ImplInheritanceClient(server)); }