|P is for Practical|
How to maintain a persistent connection over sockets?by flexvault (Monsignor)
|on May 01, 2012 at 21:11 UTC ( #968334=perlquestion: print w/replies, xml )||Need Help??|
flexvault has asked for the wisdom of the Perl Monks concerning the following question:
For years I've been using Perl to have clients and servers 'talk' to each other using sockets. For this the literature and documentation is great. In these cases, the server in listening and the client initiates the session and then 'shutdown's and 'close's the connection.
Using this technique, I can get two independent processes to communicate.
So is there a way to keep the client connection persistent and only 'close' when the client is finished? And if the connection is persistent, would that prevent other clients from connecting?
"Well done is better than well said." - Benjamin Franklin
Back to Seekers of Perl Wisdom