in reply to Listening on multiple ports using IO::Select
Your code says to accept() if the connection is from $server and to close() if it is not, which means connections from $serverB hit the close() part and dump you out. You need to copy that if($client == $server) { section into a if($client == $serverB) { section as well.
| We're not surrounded, we're in a target-rich environment! |
|---|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Listening on multiple ports using IO::Select
by JPaul (Hermit) on Mar 19, 2003 at 17:09 UTC |