[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

IOCP Socket Timeout Problem..

Jay

9/24/2008 2:36:00 PM


We have developed one IOCP server Application.
We got a socket close event when client application (safe/unsafe)
close.
But when client machine restarts or network cable unplugged we can not
get
any event of the socket close.

We have also tried to set socket timeout with setsockopt() ,but its
not working with IOCP.

So ,Is there any method to get close event for this sockets? or any
other method to set
timeout in IOCP.

Thank you.
1 Answer

Mark Salsbery [MVP]

9/24/2008 8:05:00 PM

0

<onlyjaypatel@gmail.com> wrote in message
news:702fba42-e350-47d6-925e-8ac7af2b21f8@q26g2000prq.googlegroups.com...
>
> We have developed one IOCP server Application.


What do you mean by "IOCP server Application"



> We got a socket close event when client application (safe/unsafe)
> close.
> But when client machine restarts or network cable unplugged we can not
> get
> any event of the socket close.
>
> We have also tried to set socket timeout with setsockopt() ,but its
> not working with IOCP.


Can you show sample code that fails?


Mark

--
Mark Salsbery
Microsoft MVP - Visual C++


>
> So ,Is there any method to get close event for this sockets? or any
> other method to set
> timeout in IOCP.
>
> Thank you.