public bool SetReceiveBuffer(InputStream ms, SocketAsyncEventArgs socketAsyncEventArgs)
{
lock (ms)
{
ms.SetLength(ms.Published + 4096);
socketAsyncEventArgs.SetBuffer(ms.GetBuffer(), (int)ms.Published, 4096);
}
return true;
}
//public void SetSendBuffer(OutputStream ms, SocketAsyncEventArgs socketAsyncEventArgs)