public static void StartServer()
        {
            // Create the server
            string name = "Chessboxer's Realm"; // args[0].Trim();
            int    port = 6000;                 //int.Parse(args[1].Trim());

            chat = new TcpChatServer(name, port);

            //  Add a handler for a ctrl-C press
            Console.CancelKeyPress += InterruptHandler;

            //run the chat server
            chat.Run();
        }
示例#2
0
 static void Main(string[] args)
 {
     TcpChatServer.StartServer();
 }