The following module was proposed for inclusion in the Module List:
modid: TCPServer::Interface
DSLIP: MdpOp
description: a generic multithreaded tcp server interface
userid: KAN (Kan Liu)
chapterid: 16 (Server_and_Daemon_Utilities)
communities:
chatrooms
similar:
rationale:
a generic multithreaded tcp server interface
A server listens for and accepts incoming TCP connections on a port
or a Unix domain socket. And a pool of threads are created to handle
the connections in parallel. The server code handling the
connections is to be implemented in the inheriting class.
A more sophisticated implementation may require serialization in
processing requests, e.g. logging. There must be a dedicated worker
thread that serially processes requests from the server threads.
Hence _server() is the interface method to be implemented, and
_worker() is an optional interface method. If _worker() is
inplemented, each _server() thread needs to communicate with it via
a pair of queues for two-way communication.
enteredby: KAN (Kan Liu)
enteredon: Tue Dec 21 17:49:22 2010 GMT
The resulting entry would be:
TCPServer::
::Interface MdpOp a generic multithreaded tcp server interface KAN
Thanks for registering,
--
The PAUSE
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=f1600000_bd345f1534911433&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=f1600000_bd345f1534911433&SUBMIT_pause99_add_mod_insertit=1
Peek at the current permissions:
https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=TCPServer%3A%3AInterface