flush the socket?
-
Hi, I have a TCP/IP socket, which is created and set up already. I also established the connection between the client and the server. Now my question is: is there any function to flush the socket? I want to do this because sometimes there is some timing issue between the server and the client, and the client will miss some data. If I do a shutdown(), closesocket(), then connect() on the client side, everything will be back to okay. Is there any easier way to replace the three function calls? Thanks for any hint!
-
Hi, I have a TCP/IP socket, which is created and set up already. I also established the connection between the client and the server. Now my question is: is there any function to flush the socket? I want to do this because sometimes there is some timing issue between the server and the client, and the client will miss some data. If I do a shutdown(), closesocket(), then connect() on the client side, everything will be back to okay. Is there any easier way to replace the three function calls? Thanks for any hint!
-
What I/O model does the program utilize? For example, one solution is memset() to clear the data buffer linked you pass to WSARecv(). Kuphryn