IOCP Socket Timeout Problem..

O

onlyjaypatel

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.
 
M

Mark Salsbery [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top