[MUD-Dev] Programming Languages and I/O Algorithms

Kwon Ekstrom justice at softhome.net
Fri Jan 31 20:37:02 New Zealand Daylight Time 2003


From: "Udo Schröter" <udo.schroeter at trionic.de>

> My approach is, that once a request rolls in and the server socket
> has received the command, the command is instantly launched or
> queued for execution by the command thread(s). Once the command
> finishes, it sends results either directly to the socket or it
> triggers an event handler that lets the server component do the
> transfer.

I simply buffer all output which gets sent down the appropriate
connections at the end of the main loop.  Works well, and has the
advantage of only handling the output once per game-loop.

It's the cleanest and simplest solution for such limited IO.

-- Kwon J. Ekstrom


_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the MUD-Dev mailing list