示例#1
0
        public ClientWrapper(TcpClient client)
        {
            if (client != null)
            {
                TcpClient  = client;
                ThreadPool = new MyThreadPool();
                ThreadPool.LaunchThread(ThreadRun);

                var bytes = new byte[8];
                Globals.Random.NextBytes(bytes);
                ConnectionId = Encoding.ASCII.GetString(bytes).Replace("-", "");
            }
        }