public NetSendSystem(SocketSystem socketSys) { this.mSocketSystem = socketSys; mWaitSendBuffer = new QueueArraySegment <byte> (64, ClientConfig.nMaxBufferSize); mNetPackage = new NetPackage(); }
public NetLockReceiveSystem(SocketSystem socketSys) { mReceiveStreamList = new CircularBuffer <byte> (ClientConfig.nMaxBufferSize); mParseStreamList = new CircularBuffer <byte> (2 * ClientConfig.nMaxBufferSize); mBindReceiveNetPackage = new DataBind <NetPackage> (new NetPackage()); }