|
|
| "be consistent" | |
| PerlMonks |
Re: Reading from Multiple Portsby Fastolfe (Vicar) |
| on Jan 28, 2001 at 21:29 UTC ( [id://54906]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You probably want to use non-blocking sockets (via IO::Socket even) in conjunction with IO::Select. I don't know what you mean by "multiple ports" in that you could mean multiple destinations or multiple source ports. Either way, the 'peeraddr' or 'peerhost' or 'peerport' method in IO::Socket will get the address of the remotely connected client, while 'sockaddr'/'sockhost'/'sockport' will do the same for the local end.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||