1999Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Getting Started with Mud Server -->
<!--X-From-R13: Dbff @vpbyy <eavpbyyNybfgvpf.qrzba.pb.hx> -->
<!--X-Date: Wed, 7 Apr 1999 20:55:46 &#45;0700 -->
<!--X-Message-Id: Pine.LNX.4.10.9904071345280.355&#45;100000#lostics,demon.co.uk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 36FCD603.19A03D97#bellsouth,net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Getting Started with Mud Server</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="msg00024.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00026.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00021.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00026.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00025">Author</A>
&nbsp;|&nbsp;<A HREF="#00025">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00025">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Getting Started with Mud Server</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: Mud Digest &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Getting Started with Mud Server</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>: Wed, 7 Apr 1999 14:08:10 +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>
On Sat, 27 Mar 1999, Stormblade wrote:

&gt; As for servers of any type I'm a complete newbie. I wrote one in VB a
&gt; while back using the Winsock control but that's about it. So I'd need
&gt; some basic "Mud Server for Dummies" type info like what are the things
&gt; the mud server is going to have to handle and things like that.

&gt; Any pointers to sources will be appreciated but I'm really looking for
&gt; your opinions and ideas on the design like what to include in the server
&gt; and what to place in a dll and so forth.
Windows NT MUDs are rare, UNIX of one form or another is generally
considered a better platform.

First of all, I would recommend you look at the source code to a MUD
similar in design to what you have in mind.

If you are wanting a simple MUD, without any internal language, try
DikuMUD, if you want a MUD with an internal language, try LpMUD or
TinyMUCK.

DikuMUD should be accessible at <A  HREF="http://www.dikumud.com/">http://www.dikumud.com/</A>, although I
cannot get a link. CircleMUD at <A  HREF="http://www.circlemud.org/">http://www.circlemud.org/</A> is similar.

MudOS, which is the most popular
version of LpMUD, is accessible at <A  HREF="http://www.imaginary.com/~beek/mudos/">http://www.imaginary.com/~beek/mudos/</A>.

FuzzballMUCK was the only MUCK server I could find, and happens to be
available as a Windows NT version. It is at
<A  HREF="http://www.belfry.com/fuzzball/">http://www.belfry.com/fuzzball/</A>.

I don't know of any other servers in C++ (my MUD server was in the process
of being converted to C++ when I had to drop the project due to time
constraints), but again maybe someone else does. I'd try to get it tidied
up for release, but I have two practicals, an essay, tutorial work and a
project that need to be done, and a whole pile of stuff that should be
done soon. Sorry.

The basics of what a MUD should do go like this:

Open a socket, bind it to a port, listen to the socket.
Load in as much of the database is needed.

Wait for connections on that socket, or any other sockets have input.
   If there is a new connection, create a socket for it.
   If there is new input, read it into a buffer. If a linefeed is
included, parse it.
   If there is output to be sent to a socket and the socket is ready, send
as much as possible.
   If any sockets have closed, or players have quit, tidy up.
Loop until server is told to shutdown

Flush the database from memory.
Close all sockets.



Hope that all helps!




_______________________________________________
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>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00040" HREF="msg00040.html">Re: [MUD-Dev] Getting Started with Mud Server</A></strong>
<ul compact><li><em>From:</em> "Jim Clark" &lt;somewhere#sprint,ca&gt;</li></ul>
<li><strong><A NAME="00026" HREF="msg00026.html">Re: [MUD-Dev] Getting Started with Mud Server</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00021" HREF="msg00021.html">[MUD-Dev] Getting Started with Mud Server</A></STRONG>
<UL><LI><EM>From:</EM> Stormblade &lt;stormblade#bellsouth,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00024.html">Re: [MUD-Dev] Getting Started with Mud Server</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00026.html">Re: [MUD-Dev] Getting Started with Mud Server</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00021.html">[MUD-Dev] Getting Started with Mud Server</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00026.html">Re: [MUD-Dev] Getting Started with Mud Server</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00025"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00025"><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] User centered?</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00034" HREF="msg00034.html">Re: [MUD-Dev] User centered?</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Sat 10 Apr 1999, 04:27 GMT
</LI>
<LI><strong><A NAME="00046" HREF="msg00046.html">Re: [MUD-Dev] User centered?</A></strong>, 
Benjamin D. Wiechel <a href="mailto:strycher#toast,net">strycher#toast,net</a>, Wed 14 Apr 1999, 05:06 GMT
</LI>
<LI><strong><A NAME="00052" HREF="msg00052.html">RE: [MUD-Dev] User centered?</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Wed 14 Apr 1999, 19:24 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00021" HREF="msg00021.html">[MUD-Dev] Getting Started with Mud Server</A></strong>, 
Stormblade <a href="mailto:stormblade#bellsouth,net">stormblade#bellsouth,net</a>, Wed 07 Apr 1999, 06:10 GMT
<UL>
<LI><strong><A NAME="00025" HREF="msg00025.html">Re: [MUD-Dev] Getting Started with Mud Server</A></strong>, 
Ross Nicoll <a href="mailto:rnicoll#lostics,demon.co.uk">rnicoll#lostics,demon.co.uk</a>, Thu 08 Apr 1999, 03:55 GMT
<UL>
<LI><strong><A NAME="00026" HREF="msg00026.html">Re: [MUD-Dev] Getting Started with Mud Server</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Thu 08 Apr 1999, 21:47 GMT
</LI>
<LI><strong><A NAME="00040" HREF="msg00040.html">Re: [MUD-Dev] Getting Started with Mud Server</A></strong>, 
Jim Clark <a href="mailto:somewhere#sprint,ca">somewhere#sprint,ca</a>, Sun 11 Apr 1999, 05:54 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00027" HREF="msg00027.html">Re: [MUD-Dev] Getting Started with Mud Server</A></strong>, 
Hans-Henrik Staerfeldt <a href="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</a>, Fri 09 Apr 1999, 06:40 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00024" HREF="msg00024.html">Re: [MUD-Dev] Getting Started with Mud Server</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 08 Apr 1999, 03:52 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>