Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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

by spadacciniweb (Deacon)
on Aug 10, 2006 at 09:53 UTC ( #566579=note: print w/replies, xml ) Need Help??

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

In Unix systems, you can try
system 'netstat -na'
and you get information about internet connections
and sockets.

Update: you can try module Net::Netstat::Wrapper

Replies are listed 'Best First'.
Re^2: How to find out whether socket is still connected?
by tcf03 (Deacon) on Aug 11, 2006 at 14:08 UTC
    lsof -Pni :80
    will also do the trick. Of course substituting your port number for 80.

    "That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
      --Ralph Waldo Emerson

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://566579]
LanX can't hint anymore to zentaras video because he disappeared
[LanX]: auto-subtitles in YT are entertaining: "fuehrer" instead of fewer, "jews" instead of juice ...
Discipulus never noticed there was subtitles... can I call them with &subtitle or is too much perl 4?

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-06-23 16:33 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (552 votes). Check out past polls.