public AsyncSendBufferManager(int bufferSize)
 {
     _mDynamicBufferManager    = new DynamicBufferManager(bufferSize);
     _mSendBufferList          = new List <SendBufferPacket>();
     _mSendBufferPacket.Offset = 0;
     _mSendBufferPacket.Count  = 0;
 }
 public AsyncSocketUserToken(int asyncReceiveBufferSize)
 {
     MState                    = false;
     MConnectSocket            = null;
     MAsyncSocketInvokeElement = null;
     MReceiveEventArgs         = new SocketAsyncEventArgs {
         UserToken = this
     };
     MAsyncReceiveBuffer = new byte[asyncReceiveBufferSize];
     MReceiveEventArgs.SetBuffer(MAsyncReceiveBuffer, 0, MAsyncReceiveBuffer.Length);
     MSendEventArgs = new SocketAsyncEventArgs {
         UserToken = this
     };
     MReceiveBuffer = new DynamicBufferManager(ProtocolConst.InitBufferSize);
     MSendBuffer    = new AsyncSendBufferManager(ProtocolConst.InitBufferSize);
 }