1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: clients anyone?... -->
<!--X-From-R13: Oaqerj Ivyfba <naqerjNnnnnnnnn.qrzba.pb.hx> -->
<!--X-Date: Fri, 14 Aug 1998 18:11:50 &#45;0700 -->
<!--X-Message-Id: 199808150111.CAA03930#aaaaaaaa,demon.co.uk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 19980813235551.B15838#yuma,Princeton.EDU -->
<!--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:andrew#aaaaaaaa,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="msg00726.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00728.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00716.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00732.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00727">Author</A>
&nbsp;|&nbsp;<A HREF="#00727">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00727">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>: Andrew Wilson &lt;<A HREF="mailto:andrew#aaaaaaaa,demon.co.uk">andrew#aaaaaaaa,demon.co.uk</A>&gt;</LI>
<LI><em>Date</em>: Sat, 15 Aug 1998 02:11:55 +0100 (BST)</LI>
<LI><em>Cc</em>: <A HREF="mailto:andrew#aaaaaaaa,demon.co.uk">andrew#aaaaaaaa,demon.co.uk</A> (Andrew Wilson)</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>
Adam J. Thornton:
&gt; Andy:
&gt; &gt; What problem are you trying to solve by restricting yourself to
&gt; &gt; 200b packets?  There's always a concern when using out-of-band
&gt; &gt; stuff to make sure your seekrit messages don't swamp the connection
&gt; &gt; to the detrement of the player's own typed commands or urgent messages:
&gt; 
&gt; I envision most player commands being put in a tokenized form before being
&gt; sent; likewise update-to-the-world data will generally be tokenized.  For
&gt; example:
&gt; 
&gt; Player Client: &lt;&lt;Move towards (5,5) with speed 3.2&gt;&gt; or 
&gt;                &lt;&lt;Get Hammer&gt;&gt; or
&gt;                &lt;&lt;Give Banknote to Bubba&gt;&gt;,
&gt; where the verbs will be replaced with some canonical form, and object id's
&gt; will likewise be obj_id_t's, which currently are just good old 32-bit
&gt; integers.  I think it will be easy to fit all of the common
&gt; non-conversation situations into a 200-byte block.
&gt; 
&gt; Sure, there will be situations, like typing conversation, when you will
&gt; want larger blocks, but even that can be line oriented and thus restricted
&gt; to 80 characters, e.g.
&gt; Client: &lt;&lt;Say to Bubba "Blah blah blah how 'bout them Cowboys?"&gt;&gt;

Ok, you're restricting 'chat' output to 80 character lines, presumably
for the sake of the 200 byte packet payload you desire.  80 characters
is fine for grunting and even asking the time of day, but for casual
conversation it's probably too low.

So, perhaps you can take successive 80 character chunks of text
and recombine them to emulate the 480 character paragraphs that
the more verbose players on your mud favour.  This is what I assume
you mean by 'line oriented'.

&gt; Server updates will mostly look like
&gt;    &lt;&lt;Parent(Grapefruit) becomes Bubba&gt;&gt;
&gt;    &lt;&lt;Water at (22,3), parent(Water) becomes NULL&gt;&gt;, 
&gt; which are again easily tokenizable.
&gt; 
&gt; Sometimes you will have to deal with 
&gt;   &lt;&lt;Message from Bubba "Blah blah blah them crazy hippies...."&gt;&gt;
&gt;   but again this can mostly be line-oriented.
&gt; 
&gt; Why 200 bytes?  Well, because the most common MTU for dialup PPP
&gt; connections is 296 bytes, and I would like each of my packets to fit into a
&gt; single TCP segment.  

296 bytes?  That's useful information, and perhaps has some bearing
if you're working towards developing a highly interractive site.
I use an MTU of about 512b at home myself, chosen for me by my
modem.  Where did you get 296 from, does in include the TCP header
or is that additional?

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

Have you considered using the SSLeay libraries?  It should be possible
now to teach both server and client about SSL, acting as a drop in
replacement for the normal wide-open socket connection.

&gt; &gt; Of course, not all the information the client receives needs to be
&gt; &gt; piped laboriously through the mud server's text filters.  If you
&gt; &gt; use a lot of graphics, online help texts etc then it makes good
&gt; &gt; sense to use a different server for that (HTTP anyone?).  Just tell
&gt; &gt; the client to go get its image data from somewhere else.  This way
&gt; &gt; you end up freeing time on your 300 user mud for more interesting
&gt; &gt; weather, ecology and economics simulation code.
&gt; 
&gt; Right.  I'm already looking at a way to negotiate, in the options supported
&gt; by the client and the server, how to get image data from somewhere nearer
&gt; than the server, whether cached locally on the disk or cached in a proxy
&gt; server somewhere, and when to fake it if you have generic object data
&gt; that's appropriate, but not the specific tile you want.  I certainly don't
&gt; want to break images or large texts into 200-byte packets before sending
&gt; them!

No indeed.  UO and Furc race past this problem by just installing
the working tile set off CD/.zip when you first use the client.
My guess is that UO could install over the net entirely if the need
arose, but it's probably easier to sell plastic discs than it is
subscriptions ;)

&gt; &gt; But anyway, a lot of these performance quibbles can only be resolved
&gt; &gt; sensibly if the design of the client/external-ai/chatbot is also
&gt; &gt; a factor in your calculations.
&gt; 
&gt; Which it is; but I haven't given much thought at all to the actual nuts and
&gt; bolts of the client design.  I think what I'm going to do is nail down the
&gt; communications protocol between the client and server; then the client
&gt; knows that it has to make sense of messages in such-and-such form, and it
&gt; has to send messages in thus-and-so a form.  Then I can write a halfassed
&gt; client that does the minimum necessary that will let me work on the server
&gt; until it's reasonably solid, and then go back and actually do the Right
&gt; Thing with the messages I'm receiving.

And then what?  Develop a totally-assed client?  Forgive me.
Clients are not trivial pieces of code. Ten thousand lines will
buy you something that can just about tie its own shoe-laces and
promise not to crap on the carpet. ;)

Which reminds me, I need to clean this carpet sometime.

&gt; Adam

Ay.

Andrew.Wilson#cm,cf.ac.uk <A  HREF="http://www.cm.cf.ac.uk/User/Andrew.Wilson/">http://www.cm.cf.ac.uk/User/Andrew.Wilson/</A>
Voice/Fax: +44 (0) 1865 513 091


</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="00732" HREF="msg00732.html">[MUD-Dev] Re: clients anyone?...</A></strong>
<ul compact><li><em>From:</em> "Adam J. Thornton" &lt;adam#phoenix,Princeton.EDU&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00716" HREF="msg00716.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>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00726.html">[MUD-Dev] FW: UBE/high: Re: W IRED: Kilers have more fun</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00728.html">[MUD-Dev] Re: Yet another update on threads and signals</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00716.html">[MUD-Dev] Re: clients anyone?...</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00732.html">[MUD-Dev] Re: clients anyone?...</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00727"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00727"><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>[MUD-Dev] Re: clients anyone?...</STRONG>, <EM>(continued)</EM>
<ul compact>
<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
<LI><strong><A NAME="00685" HREF="msg00685.html">[MUD-Dev] ADMIN: Over quoting (again)</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 12 Aug 1998, 17:01 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>