Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: IO::Socket to recv

by McDarren (Abbot)
on Feb 13, 2006 at 15:58 UTC ( [id://529858]=note: print w/replies, xml ) Need Help??


in reply to IO::Socket to recv

perldoc -q timeout Found in /usr/share/perl/5.8/pod/perlfaq8.pod How do I timeout a slow event? Use the alarm() function, probably in conjunction with a signal handler, as documented in "Signals" in perlipc and the section on ``Signals'' in the Camel. You may instead use the more flexible Sys::AlarmCall module av +ailable from CPAN. The alarm() function is not implemented on all versions of Wind +ows. Check the documentation for your specific version of Perl.
That should help.... check the specific docs for alarm and eval for more information.

Update:Actually, I just had a look and IO::Socket has its own timeout method. So you probably want to use that :p

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found