In article <[EMAIL PROTECTED]>, "Peterson, Darren - Contractor.Westar" writes: >I need to write a multiplexed TCP server to handle multiple client >connections simultaneously. It doesn't help that I'm new to perl and even >newer to TCP. If this helps, I'm basing my code on an example on pp. >352-358 of Network Programming with Perl, Lincoln D. Stein, 2001. I need to >store the socket handles in a hash with the IP of the client as the index, >because the traffic to be sent to the clients will come prefaced by the >recipient IP. How do I retrieve the client IP after or from the "$connect = >$listen_socket->accept();" statement? I've seen it done with other connect >and bind methods.
$connect->peerhost; perldoc IO::Socket for this and other methods. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>