|XP is just a number|
Threading Client-Server (IO::Socket)by bloonix (Monk)
|on May 30, 2006 at 12:18 UTC||Need Help??|
bloonix has asked for the
wisdom of the Perl Monks concerning the following question:
I'm searching for a solution to build a client-server
environment. My idea - or my vision :) - is the following:
I have a master process and 1-n defined slave processes.
The master listens on a single port and divert incoming
requests from clients to the slave processes. Now I don't
know the best way to do this. One of my considered
solutions is to deal a new port on that a slave is running.
Maybe each slave runs on a own port. Or maybe a slave could
inherit the new socket ($ns = $socket->accept()).
Does someone have links or snippets with examples that
containes parts of my idea?
Update: The background of my question is that I develope
Update: Sorry people for my bad description. :(