Exemplo n.º 1
0
 public void Close()
 {
     client = null;
     reader.Close();
     stream.Close();
     sendQueue.Clear();
     receiveQueue.Clear();
 }
Exemplo n.º 2
0
 public MsgHandler(TCP.ClientTcp param)
 {
     client       = param;
     sendQueue    = new Queue();
     receiveQueue = new Queue();
     stream       = new MemoryStream();
     reader       = new BinaryReader(stream);
     MsgManager.Instance.Init(this);
 }