Home > other >  The Socket transmission problem
The Socket transmission problem

Time:10-02

I am using c # asynchronous transmission, but every time I found (ReceiveCallBack IAsyncResult (ar)) this callback, only get up to 1 m of data, the data can be directly cut, this will cause, the incompleteness of data transmission, is there anyone who faced the same problem, ask is how to solve???? I am now doing a server-side program, with each player login need to send the player has been in a state of the game players, but the user number is greater than 1 m can't transfer, and ar automatically truncated data, lead to data corruption, beg god for help

CodePudding user response:

You can expand RecvBuffer, or after sending

CodePudding user response:

Their encapsulation packet stitching

CodePudding user response:

Fight to bag, remember that the length of the package, received after, according to the packet length to unpack,
  • Related