about SocketAsyncEventArgs BytesTransferred

edward 1 Reputation point
2022-11-21T06:41:33.88+00:00

when the receive completed.the SocketAsyncEventArgs.BytesTransferred bytes not equals to the send bytes. How its happens 。

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,601 Reputation points
    2022-11-21T18:33:18.76+00:00

    Maybe the sender has not flushed the last packet, or the receiver got multiple packets. also unless you use TcpClient, the packets may arrive out of order.

    0 comments No comments