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); }