Пример #1
0
        public static void Main(string[] args)
        {
            Loger.Log(ServerSocket.logIsopen, ServerSocket.logTag, !ServerSocket.logIsopen ? null : "ServerSocket Main");

            cmd = new ServerCommand();
            cmd.Start();

            server = new ServerSocket();
            server.Start();
        }
Пример #2
0
        public static void Stop()
        {
            if (server != null)
            {
                server.Stop();
                server = null;
            }

            if (cmd != null)
            {
                cmd.Stop();
                cmd = null;
            }
        }