How can I detect that the client has closed the socket using mio 0.6?

I want to be able to detect that the client has closed the socket so that I can do deregister

it, but I cannot find a suitable way to do this.

My question is similar to Client Hanging Detection in MIO , but there are two main differences:

  • I need a cross platform solution. According to the source code mio 0.6 hup

    is UNIX only, my code should work on Windows too.

  • The mio API has changed dramatically from 0.3.

+3
sockets rust mio


source to share


No one has answered this question yet

See similar questions:

4
Client hang detection in MIO

or similar:

43
A (very) basic Python client socket example
five
UNIX domain partition not closed after close ()
3
How to detect a broken client socket without pinging to the server
3
How do I detect a disconnected C # connector?
1
closing sockets on linux and windows
1
Java: how to detect on the server if a client socket is closed?
0
socket is closing
0
Server Async Sockets - detecting closed client connection?
0
Server connection detection
-1
cannot call client from button on sockets



All Articles
Loading...
X
Show
Funny
Dev
Pics