Пример #1
0
        public Session(Socket socket, bool accepted)
        {
            syncRoot = new object();
            syncSend = new object();

            this.socket = socket;

            localEndPoint  = socket.LocalEndPoint;
            remoteEndPoint = socket.RemoteEndPoint;

            Accepted = accepted;
            recvBuf  = new byte[bufferSize];
            protocol = new Detail.Protocol();

            sendBuffer = new MemoryStream();
        }