1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: clients anyone?... -->
<!--X-From-R13: "Oqnz X. Fubeagba" <nqnzNcubravk.Bevaprgba.SRG> -->
<!--X-Date: Thu, 13 Aug 1998 20:56:33 &#45;0700 -->
<!--X-Message-Id: 19980813235551.B15838#yuma,Princeton.EDU -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 19980813214412.B10009#yuma,Princeton.EDU -->
<!--X-Reference: 199808140251.DAA02051#aaaaaaaa,demon.co.uk -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: clients anyone?...</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:adam#phoenix,Princeton.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="msg00715.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00717.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00714.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00727.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00716">Author</A>
&nbsp;|&nbsp;<A HREF="#00716">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00716">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: clients anyone?...</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>: [MUD-Dev] Re: clients anyone?...</LI>
<LI><em>From</em>: "Adam J. Thornton" &lt;<A HREF="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</A>&gt;</LI>
<LI><em>Date</em>: Thu, 13 Aug 1998 23:55:51 -0400</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#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>
On Fri, Aug 14, 1998 at 03:51:59AM +0100, Andrew Wilson wrote:
&gt; So in a sense XML is already
&gt; a player in the chat/mud sphere.
&gt;
&gt; XML is meant to be lightweight, so it probably won't cause too much
&gt; of a noticable performance hit clientside, unless your client is
&gt; especially graphics hungry.  I'm not sure how much of the client
&gt; machine's processing capacity is used up by something as intensive
&gt; as UO's client.  My guess is that it's "as much as possible".

I'll look into XML, then.  If there are freely-distributable reasonably
lightweight parsers ready to link into one's own code, it might be a
reasonable solution.

&gt; What problem are you trying to solve by restricting yourself to
&gt; 200b packets?  There's always a concern when using out-of-band
&gt; stuff to make sure your seekrit messages don't swamp the connection
&gt; to the detrement of the player's own typed commands or urgent messages:

I envision most player commands being put in a tokenized form before being
sent; likewise update-to-the-world data will generally be tokenized.  For
example:

Player Client: &lt;&lt;Move towards (5,5) with speed 3.2&gt;&gt; or 
               &lt;&lt;Get Hammer&gt;&gt; or
               &lt;&lt;Give Banknote to Bubba&gt;&gt;,
where the verbs will be replaced with some canonical form, and object id's
will likewise be obj_id_t's, which currently are just good old 32-bit
integers.  I think it will be easy to fit all of the common
non-conversation situations into a 200-byte block.

Sure, there will be situations, like typing conversation, when you will
want larger blocks, but even that can be line oriented and thus restricted
to 80 characters, e.g.
Client: &lt;&lt;Say to Bubba "Blah blah blah how 'bout them Cowboys?"&gt;&gt;

Server updates will mostly look like
   &lt;&lt;Parent(Grapefruit) becomes Bubba&gt;&gt;
   &lt;&lt;Water at (22,3), parent(Water) becomes NULL&gt;&gt;, 
which are again easily tokenizable.

Sometimes you will have to deal with 
  &lt;&lt;Message from Bubba "Blah blah blah them crazy hippies...."&gt;&gt;
  but again this can mostly be line-oriented.

Why 200 bytes?  Well, because the most common MTU for dialup PPP
connections is 296 bytes, and I would like each of my packets to fit into a
single TCP segment.  Since TCP is reliable, this actually won't buy me
much, since we'll be waiting for a lost segment to be retransmitted anyway
since I'm guaranteed to receive it all in order, but it will help to some
degree in minimizing needed retransmission.  Plus I'd rather deal with
small fixed-length datagrams because it makes coding on each end easier
than dealing with arbitrary-length transmission.  It also will make
encryption of the end-to-end data stream much, much easier if I know that
I'm guaranteed some number of 8-byte blocks; agree to save the last block
as the ivec for the next chunk of data, and it's trivial to turn it into a
nice CBC stream cipher with a good symmetric algorithm (DES (yeah, I know,
but it's not like I'm protecting nuclear secrets here), 3DES, or IDEA, for
instance; all ciphers with 64-bit message block lengths.)

&gt; Of course, not all the information the client receives needs to be
&gt; piped laboriously through the mud server's text filters.  If you
&gt; use a lot of graphics, online help texts etc then it makes good
&gt; sense to use a different server for that (HTTP anyone?).  Just tell
&gt; the client to go get its image data from somewhere else.  This way
&gt; you end up freeing time on your 300 user mud for more interesting
&gt; weather, ecology and economics simulation code.

Right.  I'm already looking at a way to negotiate, in the options supported
by the client and the server, how to get image data from somewhere nearer
than the server, whether cached locally on the disk or cached in a proxy
server somewhere, and when to fake it if you have generic object data
that's appropriate, but not the specific tile you want.  I certainly don't
want to break images or large texts into 200-byte packets before sending
them!

&gt; But anyway, a lot of these performance quibbles can only be resolved
&gt; sensibly if the design of the client/external-ai/chatbot is also
&gt; a factor in your calculations.

Which it is; but I haven't given much thought at all to the actual nuts and
bolts of the client design.  I think what I'm going to do is nail down the
communications protocol between the client and server; then the client
knows that it has to make sense of messages in such-and-such form, and it
has to send messages in thus-and-so a form.  Then I can write a halfassed
client that does the minimum necessary that will let me work on the server
until it's reasonably solid, and then go back and actually do the Right
Thing with the messages I'm receiving.

Adam
-- 
adam#princeton,edu 
"There's a border to somewhere waiting, and a tank full of time." - J. Steinman


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00754" HREF="msg00754.html">[MUD-Dev] free XML Parser (was Re: clients anyone?...)</A></strong>
<ul compact><li><em>From:</em> James Wilson &lt;jwilson#rochester,rr.com&gt;</li></ul>
<li><strong><A NAME="00727" HREF="msg00727.html">[MUD-Dev] Re: clients anyone?...</A></strong>
<ul compact><li><em>From:</em> Andrew Wilson &lt;andrew#aaaaaaaa,demon.co.uk&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00712" HREF="msg00712.html">[MUD-Dev] Re: clients anyone?...</A></STRONG>
<UL><LI><EM>From:</EM> "Adam J. Thornton" &lt;adam#phoenix,Princeton.EDU&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00714" HREF="msg00714.html">[MUD-Dev] Re: clients anyone?...</A></STRONG>
<UL><LI><EM>From:</EM> Andrew Wilson &lt;andrew#aaaaaaaa,demon.co.uk&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00715.html">[MUD-Dev] Passing file descriptors to other processes</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00717.html">[MUD-Dev] Re: Methods to Reduce Ecological Wipeout</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00714.html">[MUD-Dev] Re: clients anyone?...</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00727.html">[MUD-Dev] Re: clients anyone?...</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00716"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00716"><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><A NAME="00698" HREF="msg00698.html">[MUD-Dev] Re: clients anyone?...</A></strong>, 
Bruce Mitchener, Jr. <a href="mailto:ubmitche#mcs,drexel.edu">ubmitche#mcs,drexel.edu</a>, Thu 13 Aug 1998, 05:29 GMT
<UL>
<LI><strong><A NAME="00700" HREF="msg00700.html">[MUD-Dev] Re: clients anyone?...</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Thu 13 Aug 1998, 12:22 GMT
</LI>
<LI><strong><A NAME="00712" HREF="msg00712.html">[MUD-Dev] Re: clients anyone?...</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Fri 14 Aug 1998, 01:45 GMT
<UL>
<LI><strong><A NAME="00714" HREF="msg00714.html">[MUD-Dev] Re: clients anyone?...</A></strong>, 
Andrew Wilson <a href="mailto:andrew#aaaaaaaa,demon.co.uk">andrew#aaaaaaaa,demon.co.uk</a>, Fri 14 Aug 1998, 02:52 GMT
<UL>
<LI><strong><A NAME="00716" HREF="msg00716.html">[MUD-Dev] Re: clients anyone?...</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Fri 14 Aug 1998, 03:56 GMT
<UL>
<LI><strong><A NAME="00727" HREF="msg00727.html">[MUD-Dev] Re: clients anyone?...</A></strong>, 
Andrew Wilson <a href="mailto:andrew#aaaaaaaa,demon.co.uk">andrew#aaaaaaaa,demon.co.uk</a>, Sat 15 Aug 1998, 01:11 GMT
<UL>
<LI><strong><A NAME="00732" HREF="msg00732.html">[MUD-Dev] Re: clients anyone?...</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Sat 15 Aug 1998, 04:59 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00754" HREF="msg00754.html">[MUD-Dev] free XML Parser (was Re: clients anyone?...)</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Tue 18 Aug 1998, 00:47 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00688" HREF="msg00688.html">[MUD-Dev] JASSS: The Journal of Artificial Societies and Social Simulation</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 12 Aug 1998, 17:40 GMT
</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>