You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public virtual long Receive(byte[] buffer, long offset, long size)
{
if (!IsConnected)
return 0;
if (size == 0)
return 0;
// Receive data from the server
long received = Socket.Receive(buffer, (int)offset, (int)size, SocketFlags.None, out SocketError ec);
if (received > 0)
{
// Update statistic
BytesReceived += received;
// Call the buffer received handler
OnReceived(buffer, 0, received);
}
OnReceived(buffer, 0, received); This should be offset, not 0
Look forward to your reply
The text was updated successfully, but these errors were encountered:
OnReceived(buffer, 0, received); This should be offset, not 0
Look forward to your reply
The text was updated successfully, but these errors were encountered: