MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: So in an event-driven server, how do you ...
Date: Mon, 07 Apr 1997 13:39:45 -0400 (EDT)
From: Michael Hohensee <michael#sparta,mainstream.net>
>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 don't have too much expereince with event driven systems (still haven't
decided which way I'm gonna go with my system, but it will probably be event
driven), but my first impulse would be to have the system drop an event in the
queue which, when it ripens, would check for any player I/O and then drop
"itself" back in the queue to go off at some reasonable interval later (every
second - 1/2 second? whatever). Essentially an infinite polling loop done
with events.
probably want one of those events for each socket connected so people's
commands don't always go off at the same time.
-Greg
- Thread context:
- Re: Yet Another Introduction, (continued)
- Off on the languages tangent!,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Tue 08 Apr 1997, 13:07 GMT
- So in an event-driven server, how do you ...,
Michael Hohensee michael#sparta,mainstream.net, Tue 08 Apr 1997, 00:35 GMT
- <Possible follow-up(s)>
- Re: So in an event-driven server, how do you ...,
S001GMU S001GMU#nova,wright.edu, Tue 08 Apr 1997, 02:10 GMT
- Re: So in an event-driven server, how do you ...,
Nathan Yospe yospe#hawaii,edu, Tue 08 Apr 1997, 03:42 GMT
- Re: So in an event-driven server, how do you ...,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Tue 08 Apr 1997, 13:08 GMT
- Re: So in an event-driven server, how do you ...,
clawrenc clawrenc#xsvr1,cup.hp.com, Sat 12 Apr 1997, 04:31 GMT
- Re: So in an event-driven server, how do you ...,
clawrenc clawrenc#cup,hp.com, Sat 12 Apr 1997, 04:38 GMT
[ Other Periods
| Other mailing lists
| Search
]