///<summary>Main for ExampleListener.</summary> ///<param name="args">Command Line Arguments</param> public static void Main(String[] args) { // TODO: Change to correct URI string uri = "tcp://127.0.0.1:4001"; ServerFactory listener = ExampleHelper.NewListener(uri, null, new MainExampleListener()); // Start the Listener listener.TransportControl(TransportConsts.START_AND_WAIT_UP, 4000); }
public void StartListener() { String uri = "tcp://127.0.0.1:4010"; MainExampleListener implFactory = new MainExampleListener(); listener = ExampleHelper.NewListener(uri, null, implFactory); listener.TransportControl(TransportConsts.START_AND_WAIT_UP, 4000); Console.WriteLine("Listener Started"); }