DBordello has asked for the wisdom of the Perl Monks concerning the following question:
I am unable (through thought and experimentation) figure out a way to do that on two sockets. I have tried IO::Select but I don't think that would work because I need to pass a connection to a specific sub, not just all connections to one sub.while (my $active_sock = $sock->accept()) { fork and send it to a sub +}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Listening on 2 Sockets
by pg (Canon) on Apr 03, 2003 at 04:36 UTC | |
|
•Re: Listening on 2 Sockets
by merlyn (Sage) on Apr 03, 2003 at 07:28 UTC | |
|
Re: Listening on 2 Sockets
by jasonk (Parson) on Apr 03, 2003 at 04:18 UTC |