[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

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

[Full Header] [Plain Text]
From: "Kwon Ekstrom" <justice@softhome.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 31 Jan 2003 20:37:02 -0700
References: [1] [2] <-newest
Organization: Kanga.Nu
From: "Udo Schröter" <udo.schroeter@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@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev