in reply to Re: IO::Socket doing getpeername twice on every send?
in thread IO::Socket doing getpeername twice on every send?
I connected from multiple hosts, getting the right port each time, then restarted the listener, connected again from multiple hosts and still got the expected results from my inserted block of code.print "GOT LEN " . length($client->peername) . "\n"; my($port, $ipaddr) = sockaddr_in($client->peername); print "GOT PORT $port\n";
|
|---|