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

Re^2: In perl socket programming how to send a data from client and receive it from server and how to get number of clients processes and client ID?

by choroba (Cardinal)
on May 01, 2019 at 07:52 UTC ( [id://1233221]=note: print w/replies, xml ) Need Help??


in reply to Re: In perl socket programming how to send a data from client and receive it from server and how to get number of clients processes and client ID?
in thread In perl socket programming how to send a data from client and receive it from server and how to get number of clients processes and client ID?

Maybe the problem is the number of clients doesn't decrease when a client disconnects? It's possible to send a "goodbye" message to the server, but sometimes the connection gets lost without a chance to say anything, in which case a timeout (and maybe a keep-alive message) might help. Also, why is the initial number of clients set to -1?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^2: In perl socket programming how to send a data from client and receive it from server and how to get number of clients processes and client ID?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found