Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: How to serve multiple socket clients Perl

by Anonymous Monk
on Mar 23, 2015 at 22:08 UTC ( [id://1121044]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-16 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found