Thanks very much!

-----Original Message-----
From: WC -Sx- Jones [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 10:29 AM
To: Peterson, Darren - Contractor.Westar
Cc: '[EMAIL PROTECTED]'
Subject: Re: multiplexed TCP server with client socket handles stored in
hash

Peterson, Darren - Contractor.Westar wrote:

> 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.

Attached is some really OLD code that will like get me into trouble.

Enjoy!  :)

-- 
_Sx_ http://youve-reached-the.endoftheinternet.org/ _____
      http://jaxpm.insecurity.org/
      http://cis4dl.insecurity.org/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to