in reply to Re^2: How to serve multiple socket clients Perl
in thread How to serve multiple socket clients Perl

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.

  • Comment on Re^3: How to serve multiple socket clients Perl