Пример #1
0
        static void Main(string[] args)
        {
            tcpServer app = new tcpServer(serverSettings.Default.port);     // set the server port

            app.killProgramEvent_ += quitProgram;
            waitHandle.WaitOne();
        }
Пример #2
0
 static void Main(string[] args)
 {
     tcpServer app = new tcpServer(serverSettings.Default.port);     // set the server port
     app.killProgramEvent_ += quitProgram;
     waitHandle.WaitOne();
 }