I'm sure there is a backtracking trail you could go thru, via some socket utility, like socklist, but I think your best bet is to just store the info in a hash, like
then all you need to do is track id values.%client; $client{$id}{$sock} = $socket; $client{$id}{'fileno'} = fileno( $socket );
In reply to Re^3: Sharing sockets between threads
by zentara
in thread Sharing sockets between threads
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |