예제 #1
0
 void Terminate()
 {
     Stream             = null;
     Client             = null;
     RecvTask           = null;
     CancellTokenSource = null;
     RecvMsg            = null;
 }
예제 #2
0
        public MessageManager(TcpClient client, IRecieveMessage recvMsg)
        {
            Debug.Assert(client != null);
            Debug.Assert(recvMsg != null);
            Client = client;
            Stream = Client.GetStream();

            RecvMsg = recvMsg;

            Debug.Assert(Stream != null);
        }