Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Anonymous Monk
on May 29, 2009 at 23:50 UTC ( [id://766988]=note: print w/replies, xml ) Need Help??


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

I confirm getpeername will do the trick. if the remote end has closed connection then getpeername will fail. RS.
  • Comment on Re^2: How to find out whether socket is still connected?

Replies are listed 'Best First'.
Re^3: How to find out whether socket is still connected?
by FunkyWinkerbean (Novice) on Feb 28, 2012 at 17:26 UTC

    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://766988]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-24 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found