Example #1
0
 static void Listen(Network mainServer)
 {
     // Start listening for connections
     mainServer.StartListening();
     // Show that we started to listen for connections
     Log.WriteLineMessage("Monitoring for connections...");
     Network.messageHandler += new Network.NewMessageEventHandler(mainServer_messageHandler);
 }
Example #2
0
 static void Listen(Network mainServer)
 {
     // Start listening for connections
     mainServer.StartListening();
     // Show that we started to listen for connections
     Log.WriteLineMessage("Monitoring for connections...");
     Network.messageHandler += new Network.NewMessageEventHandler(mainServer_messageHandler);
 }