Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Answer: How can I make a client realize the server connection is gone?

by dl748 (Initiate)
on Jun 02, 2001 at 02:59 UTC ( #85115=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > How can I make a client realize the server connection is gone? - Answer contributed by dl748

If you are using a select to tell when you can read off of the connection, then you can tell the connection is closed becuase the select will say there is something to read off of it and when you read from it you will get 0 bytes read. Then You would close the connection. I've used this method for internal intranets and the internet.

  • Comment on Answer: How can I make a client realize the server connection is gone?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-11-20 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (294 votes). Check out past polls.

    Notices?