示例#1
0
        static void Main(string[] args)
        {
            try
            {
                server = new ServerObject();
                server.InitServer();

                listenThread = new Thread(new ThreadStart(server.Listen));
                listenThread.Start();
            }
            catch (Exception e)
            {
                server.Disconnect();
            }
        }