Hi Marco, 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. Already have the book Network Programming with > Perl (Lincoln D. Stein) I believe that book is heavily outdated. Anyway, you should look at an event-driven/asynchronous-IO framework such as http://poe.perl.org/ , https://metacpan.org/module/AnyEvent , https://metacpan.org/release/IO-Async , etc. Using one of them will facilitate most of the heavy lifting for you. Regards, Shlomi Fish > Having a client / server based script that works with > a single stream of network data in a single session e.g. a mail server that > spawns a new process for every session, I get how that works. But when I want > to do multiple read/write sessions over different sockets I get totally > lost.. Looked into IO::select and stuff but I'm just missing some good simple > clean examples. > > Example.. Client connects to server.. Server keeps sending messages that are > passed to the client. Client connects to 2nd source.. And needs to read/write > to both the server and to the 2nd source..... > > Any help in the right direction is appreciated. > > Marco van Kammen > Applicatiebeheerder > > > > > Mirabeau | MMS Dr. C.J.K. van Aalstweg 8F 301, 1625 NV Hoorn > +31(0)20-5950550 - - www.mirabeau.nl<http://www.mirabeau.nl> > > > > > -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ What Makes Software Apps High Quality - http://shlom.in/sw-quality Failure is not an option! It’s bundled with the product. — Cipher-0 in Freenode’s #perl Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/