public bool RecvAsync(byte[] buffer, int offset, int count)
{
try
{
this.innArgs.SetBuffer(buffer, offset, count);
}
catch (Exception e)
{
throw new Exception($"socket set buffer error: {buffer.Length}, {offset}, {count}", e);
}
if (this.socket.ReceiveAsync(this.innArgs))
{
return true;
}
OnRecvComplete(this.innArgs);
return false;
}