in reply to Non-forked, bi-directional client/server

Hi there,

Have a look at CPAN for C<Net::Server>. It provides a host of different working models, and it's really easy to use, I am using it in real-life network projects and I think it's a truly useful module.

From the POD:

FEATURES * Single Server Mode * Inetd Server Mode * Preforking Simple Mode (PreForkSimple) * Preforking Managed Mode (PreFork) * Forking Mode * Multiplexing Mode using a single process * Multi port accepts on Single, Preforking, and Forking modes * Simultaneous accept/recv on tcp, udp, and unix sockets * Safe signal handling in Fork/PreFork avoids perl signal trouble * User customizable hooks * Chroot ability after bind * Change of user and group after bind * Basic allow/deny access control * Customized logging (choose Syslog, log_file, or STDERR) * HUP able server (clean restarts via sig HUP) * Dequeue ability in all Fork and PreFork modes. * Taint clean * Written in Perl * Protection against buffer overflow * Clean process flow * Extensibility

Check out the lastest version at http://seamons.com/

Good luck,
xc

our $Perl6 is Fantastic;