Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Listening on multiple ports using IO::Select

by jasonk (Parson)
on Mar 19, 2003 at 17:05 UTC ( [id://244386]=note: print w/replies, xml ) Need Help??


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
    JPaul slaps his forehead...
    I had hoped at least it was perl being cleverer than me in some mystical way instead of something as downright stupid as that. Uff da!
    Thanks jasonk, good call. <sigh>

    JP,
    -- Alexander Widdlemouse undid his bellybutton and his bum dropped off --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://244386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found