示例#1
0
 public CHSocketReader(Socket socket, EndCallback _endCB, CHSocket baseSocket)
 {
     endCB   = _endCB;
     _socket = socket;
     parser  = new CHPacketParser(baseSocket);
     BeginBackgroundRead();
 }
示例#2
0
 public CHPacketParser(CHSocket baseSocket)
 {
     _baseSocket = baseSocket;
     ifcompress  = baseSocket.ifCompress;
 }