Пример #1
0
        void CreateNewSession(TcpListener listener)
        {
            Socket sock = listener.AcceptSocket();

            clientSocket = new DebugSocket(sock);
            clientSocket.OnReciveMessage = OnReceive;
            clientSocket.OnClose         = OnClose;
            ClientConnected();
        }
Пример #2
0
 void OnClose()
 {
     ds.Detach();
     clientSocket = null;
 }