You don't "switch between clients". Your callback gets data from all clients, and you simply ignore data from any client except the "current client" (keep a $currentclient :).
Have a callback from STDIN to switch which client is the "current client".
I hope this helps.
In reply to Re^3: How to serve multiple socket clients Perl
by Anonymous Monk
in thread How to serve multiple socket clients Perl
by perlnwb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |