Home > other >  C + +, socket communication problems, the accept function sometimes need to press the Enter key to c
C + +, socket communication problems, the accept function sometimes need to press the Enter key to c

Time:09-29

I written in c + + socket procedures client and server communication, there has been a very strange phenomenon:
On the server side and client communication under the condition of normal links, stop the client communication program, if the client communication program stop time is longer, once again open the client communication program, link is normal, while the server-side program prompts Waiting Connect... State, have been waiting for, in this case just press the keyboard enter key, the server program to link success, this kind of situation and sometimes without, the

Exclude a which, more urgent, online urgent!
  • Related