[Home] [Groups] - Message: [Prev in Group] [Next in Group]
1283: So in an event-driven server, how do you ...
[Full Header] [Plain Text]
From: Michael Hohensee <michael@sparta.mainstream.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Mon, 7 Apr 1997 13:39:45 -0400 (EDT)
References: [1]
Organization: Kanga.Nu
It looks like you guys hate polling. (Not that I blame you, I don't
really like it myself. :) But if you've got a system that just sits
until the next "ripening", how do you do your IO with players? Do you
use an endless loop to poll the connections? Or do you use the SIGIO
signal?
I tried to use both. I poll for new commands from the players, and use
the SIGIO signal to hook up a new connection. More than a little bit
dirty. It doesn't work under BSD, then I have to poll for everything.
Michael Hohensee
--
Eagleson's Law:
Any code of your own that you haven't looked at for six or more
months, might as well have been written by someone else. (Eagleson is
an optimist, the real number is more like three weeks.)