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! |
|---|
In reply to Re: Listening on multiple ports using IO::Select
by jasonk
in thread Listening on multiple ports using IO::Select
by JPaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |