Think about Loose Coupling | |
PerlMonks |
Re: simple server implementation suggestions?by jbert (Priest) |
on Nov 14, 2007 at 15:54 UTC ( [id://650777]=note: print w/replies, xml ) | Need Help?? |
I'd use something like Danga::Socket and write an event-based system. There's already an http server or two (perlbal, mogstored) written using Danga::Socket it which you could modify or take chunks from.
I think you can add non-socket fds into the event loop (see the OtherFds method) so you can look for events on your watched files too. I guess POE is always a popular suggestion too, although I've not used it.
In Section
Seekers of Perl Wisdom
|
|