Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I have the following code - $socket new IO::Socket::INET ( PeerAddr => "localhost", PeerPort => 12323, Proto => 'tcp' )); print $socket "Hi!" print $socket "Aha, I see!" $socket->close(); The thing is, I'd like to listen to the replies I get when I send thes +e command, and perhaps I get reply... Anyway, how would I modify this code to print the replies I get. thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recieving reply from a socket
by puudeli (Pilgrim) on Mar 19, 2009 at 13:46 UTC | |
|
Re: Recieving reply from a socket
by lostjimmy (Chaplain) on Mar 19, 2009 at 13:47 UTC | |
by Anonymous Monk on Mar 19, 2009 at 15:14 UTC | |
by Anonymous Monk on Mar 19, 2009 at 15:31 UTC | |
by Anonymous Monk on Mar 19, 2009 at 15:41 UTC | |
by lostjimmy (Chaplain) on Mar 19, 2009 at 15:58 UTC | |
by Anonymous Monk on Mar 19, 2009 at 15:45 UTC | |
|
Re: Recieving reply from a socket
by locked_user sundialsvc4 (Abbot) on Mar 19, 2009 at 15:11 UTC |