in reply to Re^3: IO::Socket reconnect
in thread IO::Socket reconnect
Of course. I tried to use same code as in your example. such code don't work for me. As I understand if I open socket to accept connections (not to create to a remote host) then it doesn't have state "connected" at all. Not sure if my suggestion is right, I'm beginner in Perl (and in programming). I checked my suggestion with this example: http://www.perlmonks.org/?node_id=884065 Script's logic is to accept a connection and start to send a data, if connection was closed, then stop to publish a data and wait for a new connection
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: IO::Socket reconnect
by NetWallah (Canon) on Feb 18, 2016 at 04:27 UTC | |
by nikita.af (Acolyte) on Feb 18, 2016 at 12:52 UTC |