Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to find out whether socket is still connected?

by ikegami (Patriarch)
on Aug 16, 2006 at 04:03 UTC ( [id://567597]=note: print w/replies, xml ) Need Help??


in reply to How to find out whether socket is still connected?

Out of curiosity, which docs? The docs for getpeername don't say anything about indicating whether the socket is still connected or not.

Replies are listed 'Best First'.
Re^2: How to find out whether socket is still connected?
by Anonymous Monk on May 29, 2009 at 23:50 UTC
    I confirm getpeername will do the trick. if the remote end has closed connection then getpeername will fail. RS.

      I understand this is an outdated post, but I need confirmation that getpeername is a reliable test that socket is still connected. Is there a best practice please?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://567597]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-19 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found