|
-
February 11th, 2009, 03:07 AM
#1
How to flush a TCP/IP buffer?
Hello guys!, Could anyone tell me how can I flush a IP buffer?...I have a client-server application. The client sends data normaly, but when the server gets down suddenly (a reset), the client appears not to realize that the connection is down and keep on sending. This makes that the ip buffer get colapsed. In this situation, the other threads of the aplication, as the one sends pings every second, can not send messages. The problem is that the "send" function return me the "ENOBUFFS" error when the IP buffer is full instead of the sockect buffer. Is there any way to know when a socket buffer is full to close the connection a flush the IP buffer without wait for the confirmation from the other side of the comunication, which is allready down!
Thank you in advance.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|