hohumbgdl2003 has asked for the wisdom of the Perl Monks concerning the following question:
use IO::Socket; $sock = new IO::Socket::INET ( PeerAddr => '141.121.85.63', PeerPort => '64511', Proto => 'tcp', Listen => SOMAXCONN, Reuse => 1, ); die "Could not create socket: $!\n" unless $sock; print $sock $new_sock = $sock->accept(); while(<$new_sock>) { print "!99200test@@"; } close($sock);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to use a socket to monitor an Ethernet port
by ikegami (Patriarch) on Aug 03, 2006 at 00:25 UTC |