Connection broken on recv() function
- From: "Kwokho" <kwokho74@xxxxxxxxxxx>
- Date: Wed, 14 Sep 2005 16:02:56 +0800
Dear all,
I use recv() function to receive data from the client socket (blocked). If
the client has terminated the process, the function returns SOCKET_ERROR
with the error code WSAECONNRESET(10054). Then I can handle this error by
determinating the error code.
However, when I unplug the LAN cable on the client's computer, the function
does not return, it still blocked in the recv() function. Is there any way
to set the recv() function return immediately or within a certain time? And
I don't want to use a nonblock socket.
Thanks a lot,
Kwokho, Fung
.
- Follow-Ups:
- Re: Connection broken on recv() function
- From: Fenster
- Re: Connection broken on recv() function
- From: Luc Kumps
- Re: Connection broken on recv() function
- From: Arkady Frenkel
- Re: Connection broken on recv() function
- From: alfranze
- Re: Connection broken on recv() function
- From: Mike Weller
- Re: Connection broken on recv() function
- Prev by Date: Re: Get Opened HANDLE information
- Next by Date: Re: How virtual address is mapped to physical address
- Previous by thread: Get Opened HANDLE information
- Next by thread: Re: Connection broken on recv() function
- Index(es):
Relevant Pages
|