Don't ask to ask, just ask | |
PerlMonks |
IO::Socket to recvby dsb (Chaplain) |
on Feb 13, 2006 at 15:47 UTC ( [id://529853]=perlquestion: print w/replies, xml ) | Need Help?? |
dsb has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to open a socket to a service, send a message and receive a response. With the following code, I can do just that:
The trouble is that if the service is not functioning properly it does not respond, and so the call to recv hangs. It's okay if the server doesn't respond (that's kind of the point of this little smoke test), but I need to just get an empty response and move on... Thoughts?
dsb This @ISA my( $cool ) %SIG
Back to
Seekers of Perl Wisdom
|
|