Ionizor has asked for the wisdom of the Perl Monks concerning the following question:
I've been banging my head against this for quite a while now and I've decided I just don't have enough networking experience to figure it out on my own.
I'm trying to write a multi-user, interactive server script. I've put together a basic server using IO::Select without a huge amount of pain thanks to some excellent advice from the Monks and Lincoln D. Stein's "Network Programming with Perl" book. The way my current implementation works is by having an IO::Select switch in the main program with a module to handle the individual connections.
I'm trying to figure out a good way to make the networking modular so that if I feel like changing from IO::Select to a forking model (such as if I'm moving the code from OS to OS), I can do that with only minor changes to the code. Ideally I'd like to be able to say, for example, use MUD::Networking::Fork; instead of use MUD::Networking::Select; and have it work.
I'm starting to wonder if I haven't completely overreached my current ability trying to implement this. Any input would be appreciated.
--
Grant me the wisdom to shut my mouth when I don't know what I'm talking about.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sockets - IO::Select, fork(), and modularity
by tedrek (Pilgrim) on Jun 21, 2003 at 00:37 UTC | |
by Ionizor (Pilgrim) on Jul 02, 2003 at 23:36 UTC |