Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: function to count pending packets in TCP socket

by thanos1983 (Parson)
on Jan 31, 2018 at 10:28 UTC ( [id://1208176]=note: print w/replies, xml ) Need Help??


in reply to function to count pending packets in TCP socket

Hello Anonymous Monk,

I found this thread How can I test TCP socket status in Perl?. The accepted answer is:

$socket = IO::Socket::INET(localhost, 1000); die "no connection" unless $socket -> connected(); $socket -> send("your face here for $20"); die "socket is dead" unless $socket -> connected(); $socket -> recv($data);

Let us know if it works, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found