Home > other >  TCP communications, the client one byte at a time of sending?
TCP communications, the client one byte at a time of sending?

Time:10-05

If TCP client send one byte of data, send N of this, the server is a receiving N data, or receive a byte of data at a time, there is caught is caught many package or a pack of??

CodePudding user response:

May, particular case depends on the spacing of the sending and the sender TCP protocol Settings, so you must be prepared to handle any kind of situation,
This stick is package problem, can go to check the stick package handling of the problem

CodePudding user response:

Specific situation to see whether the server status, is upstairs said package problem.

CodePudding user response:

Have a NODELAY parameters, if use, you can according to a byte receive data at a time, when the rate is not high, do not need to consider stick package problem,

CodePudding user response:

About TCP protocol, is about to see your sending interval

CodePudding user response:

Should pay more attention to the TCP
  • Related