1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: So in an event&#45;driven server, how do you ... -->
<!--X-From-R13: E001U[GNabin.jevtug.rqh -->
<!--X-Date: from fabius.globecomm.net [207.51.48.6] by mx01.ny.us.ibm.net id 860440255.69718&#45;1 Mon Apr  7 19:10:55 1997 -->
<!--X-Message-Id: 01IHFFHY4DHE985WE5#nova,wright.edu -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: So in an event-driven server, how do you ...</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:S001GMU#nova,wright.edu">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00038.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00042.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00038.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00040.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00039">Author</A>
&nbsp;|&nbsp;<A HREF="#00039">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00039">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: So in an event-driven server, how do you ...</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: So in an event-driven server, how do you ...</LI>
<LI><em>From</em>: <A HREF="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</A></LI>
<LI><em>Date</em>: Mon, 07 Apr 1997 15:09:54 -0400 (EDT)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

Date: Mon, 07 Apr 1997 13:39:45 -0400 (EDT)
From: Michael Hohensee &lt;michael#sparta,mainstream.net&gt;

&gt;It looks like you guys hate polling.  (Not that I blame you, I don't 
&gt;really like it myself. :)  But if you've got a system that just sits 
&gt;until the next "ripening", how do you do your IO with players?  Do you 
&gt;use an endless loop to poll the connections?  Or do you use the SIGIO 
&gt;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


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00038.html">So in an event-driven server, how do you ...</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00042.html">Re: Greetings. :)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00038.html">So in an event-driven server, how do you ...</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00040.html">Re: So in an event-driven server, how do you ...</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00039"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00039"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: Yet Another Introduction</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00104" HREF="msg00104.html">Re: Yet Another Introduction</A></strong>, 
Dmitri Kondratiev <a href="mailto:dima#ns,paragraph.com">dima#ns,paragraph.com</a>, Sat 12 Apr 1997, 21:55 GMT
</LI>
<LI><strong><A NAME="00105" HREF="msg00105.html">Re: Yet Another Introduction</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Sat 12 Apr 1997, 22:48 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00049" HREF="msg00049.html">Off on the languages tangent!</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 08 Apr 1997, 13:07 GMT
<LI><strong><A NAME="00038" HREF="msg00038.html">So in an event-driven server, how do you ...</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Tue 08 Apr 1997, 00:35 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00039" HREF="msg00039.html">Re: So in an event-driven server, how do you ...</A></strong>, 
S001GMU <a href="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</a>, Tue 08 Apr 1997, 02:10 GMT
</LI>
<LI><strong><A NAME="00040" HREF="msg00040.html">Re: So in an event-driven server, how do you ...</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Tue 08 Apr 1997, 03:42 GMT
</LI>
<LI><strong><A NAME="00046" HREF="msg00046.html">Re: So in an event-driven server, how do you ...</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 08 Apr 1997, 13:08 GMT
</LI>
<LI><strong><A NAME="00090" HREF="msg00090.html">Re: So in an event-driven server, how do you ...</A></strong>, 
clawrenc <a href="mailto:clawrenc#xsvr1,cup.hp.com">clawrenc#xsvr1,cup.hp.com</a>, Sat 12 Apr 1997, 04:31 GMT
</LI>
<LI><strong><A NAME="00088" HREF="msg00088.html">Re: So in an event-driven server, how do you ...</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 12 Apr 1997, 04:38 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>