in reply to Re^3: How can I test TCP socket status in Perl?
in thread How can I test TCP socket status in Perl?
Thank you thanos1983, i just picked up 127.0.0.1 and port 80 as an example in my question, my intention is to find out better way to test if an established connective is still active or not before sending data or to avoid opening another instance of same connection, if i can be able to call
return (0) unless ($sock->connected()); return (0) unless (getpeername($sock));
unfortunately i cant call to them without socket or is there a better way
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How can I test TCP socket status in Perl? (voodoo)
by tye (Sage) on Jul 27, 2015 at 03:13 UTC | |
|
Re^5: How can I test TCP socket status in Perl?
by thanos1983 (Parson) on Jul 27, 2015 at 00:27 UTC | |
by 1nickt (Canon) on Jul 27, 2015 at 01:59 UTC | |
by thanos1983 (Parson) on Jul 27, 2015 at 02:14 UTC |