Example #1
0
        ///
        /// <summary>Main for InheritanceListener.</summary>
        /// <param name="args"></param>
        ///
        public static void Main(String[] args)
        {
            string uri = "tcp://localhost:4001";

            if (args.Length > 0)
            {
                uri = args[0];
            }

            MainInheritanceListener implFactory = new MainInheritanceListener();
            ServerFactory           listener    = InheritanceHelper.NewListener(uri, null, implFactory);

            listener.TransportControl(TransportConsts.START_AND_WAIT_UP, 4000);
        }
Example #2
0
        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);
        }