msg00244.html

1999Q2/msg00244.html · 6.6 KB

From the archive 1999Q2.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Sockets -->
<!--X-From-R13: Dbff @vpbyy <eavpbyyNybfgvpf.qrzba.pb.hx> -->
<!--X-Date: Fri, 14 May 1999 01:17:07 &#45;0700 -->
<!--X-Message-Id: Pine.LNX.4.10.9905131508380.435&#45;100000@drpc&#45;jrn.res.st&#45;and.ac.uk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 3739B9B1.7485E863#ifi,uio.no -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Sockets</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:rnicoll#lostics,demon.co.uk">
</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="msg00243.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00245.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00215.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00210.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00244">Author</A>
&nbsp;|&nbsp;<A HREF="#00244">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00244">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Sockets</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Sockets</LI>
<LI><em>From</em>: Ross Nicoll &lt;<A HREF="mailto:rnicoll#lostics,demon.co.uk">rnicoll#lostics,demon.co.uk</A>&gt;</LI>
<LI><em>Date</em>: Thu, 13 May 1999 15:17:30 +0000 (GMT)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
"Jon A. Lambert" wrote:

&gt; The common select/poll loop for non-blocking sockets that processes
&gt; incoming, exceptions, reads, writes, and other mud processes is not
&gt; very efficient.  Firstly setting up the parameters to select and checking
&gt; the FD_SETs involved alone is probably higher overhead than threading.
Interesting theory. My MUD server sets every socket in the input set
automatically, and instead of setting them manually every time, it keeps a
pre-setup version, which it just memcpy()s from.

Output set is altered as data is ready to be sent, and has been sent.

Now, assuming that select() works in a nice sensible way, using
interrupts, basically. The OS should receive data for a socket, find the
right program, check if the program is waiting for the data (one
FD_ISSET() call there), and act accordingly.

Threaded may save you the time involved in checking if a certain bit is
set or not, but I really somehow doubt that the overhead in threading
won't be longer than that.



_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00215" HREF="msg00215.html">Re: [MUD-Dev] Sockets</A></STRONG>
<UL><LI><EM>From:</EM> Ola Fosheim Grøstad &lt;olag#ifi,uio.no&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00243.html">[MUD-Dev] Time Discontinuous MUD</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00245.html">RE: [MUD-Dev] Sockets</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00215.html">Re: [MUD-Dev] Sockets</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00210.html">RE: [MUD-Dev] Sockets</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00244"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00244"><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: [MUD-Dev] Sockets</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00171" HREF="msg00171.html">RE: [MUD-Dev] Sockets</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 08 May 1999, 05:04 GMT
<UL>
<LI><strong><A NAME="00180" HREF="msg00180.html">RE: [MUD-Dev] Sockets</A></strong>, 
Petri Virkkula <a href="mailto:pvirkkul#iki,fi">pvirkkul#iki,fi</a>, Sat 08 May 1999, 18:37 GMT
</LI>
<LI><strong><A NAME="00205" HREF="msg00205.html">RE: [MUD-Dev] Sockets</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Tue 11 May 1999, 20:12 GMT
<UL>
<LI><strong><A NAME="00215" HREF="msg00215.html">Re: [MUD-Dev] Sockets</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Wed 12 May 1999, 22:15 GMT
<UL>
<LI><strong><A NAME="00244" HREF="msg00244.html">Re: [MUD-Dev] Sockets</A></strong>, 
Ross Nicoll <a href="mailto:rnicoll#lostics,demon.co.uk">rnicoll#lostics,demon.co.uk</a>, Fri 14 May 1999, 08:17 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00210" HREF="msg00210.html">RE: [MUD-Dev] Sockets</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Wed 12 May 1999, 22:17 GMT
</LI>
<LI><strong><A NAME="00219" HREF="msg00219.html">Re: [MUD-Dev] Sockets</A></strong>, 
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Wed 12 May 1999, 22:26 GMT
<UL>
<LI><strong><A NAME="00218" HREF="msg00218.html">Re: [MUD-Dev] Sockets</A></strong>, 
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Wed 12 May 1999, 22:26 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00184" HREF="msg00184.html">RE: [MUD-Dev] Sockets</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 09 May 1999, 11:23 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>

Site Stats

Snippets: 1791
Codebases: 571