How can I test TCP socket status in Perl?

Posted by Gearoid Murphy on Stack Overflow See other posts from Stack Overflow or by Gearoid Murphy
Published on 2010-03-24T11:53:10Z Indexed on 2010/03/24 16:13 UTC
Read the original article Hit count: 200

Filed under:
|
|

I've got a TCP socket which reads data. When an error occurs when reading the data, I return an undef (NULL) value. Errors can be caused by badly formatted messages or broken sockets. Can someone tell me if there is a specific function which returns the status of a socket?

© Stack Overflow or respective owner

Related posts about perl

Related posts about tcp