On Wed, 4 Sep 2013 09:40:26 +0000 Marco van Kammen <mvankam...@mirabeau.nl> wrote:
> Hi All, > > I'm looking for some good documentation on how to handle multiple tcp > connections at the same time. [...] > Looked into IO::select and stuff but I'm just missing some good > simple clean examples. [...] As Shlomi said, the event frameworks will be useful if you want to handle multiple connections within the same process in a powerful and efficient way. However, for simplicity, I'd recommend a look at Net::Server, which makes this kind of thing rather simple, and provides multiple "personalities" depending on how you want your daemon to work - forking a new process for each connection, pre-forking so some "worker" processes are always available, multiplexing to handle multiple connections within one process, etc. It takes away a lot of the hard work for you. https://metacpan.org/release/Net-Server -- David Precious ("bigpresh") <dav...@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/