Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Listening on multiple ports using IO::Select

by jasonk (Parson)
on Mar 19, 2003 at 17:05 UTC ( #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>

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

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2023-12-03 11:37 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (20 votes). Check out past polls.