in reply to Re: multiple socket binding
in thread multiple socket binding
the $SERVER would be the bound socket, how do i test this if their are multiple sockets? I created a hash table that held all the descriptors for the bound ports, but not sure how to get it to match, i did the same as above but instead of the $fh == $SERVER, i did:for my $fh ($sel->can_read()) { if ($fh == $SERVER) { print "client connected\n"; } ... }
Thanks, 2bit4for (keys(%hash)) { if ($fh == $_) { ... } }
Edit: Added <code> tags. larsen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: multiple socket binding
by jasonk (Parson) on Feb 23, 2003 at 22:46 UTC | |
by 2bit4 (Initiate) on Feb 23, 2003 at 22:48 UTC |