1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: mud client development systems -->
<!--X-From-R13: Bre Hbtafra <ibtafraNcbfg10.gryr.qx> -->
<!--X-Date: Sun, 13 Dec 1998 08:25:54 &#45;0800 -->
<!--X-Message-Id: 3673BEBD.B823AC8B#post10,tele.dk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 2.2.32.19981208065047.006d66ac#pop,radiks.net -->
<!--X-Reference: 36750776.228B9FDD#post10,tele.dk -->
<!--X-Reference: 3672D4AD.7AAFD8EA#radiks,net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: mud client development systems</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:vognsen#post10,tele.dk">
</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="msg00958.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00960.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00956.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00957.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00959">Author</A>
&nbsp;|&nbsp;<A HREF="#00959">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00959">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: mud client development systems</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: mud client development systems</LI>
<LI><em>From</em>: Per Vognsen &lt;<A HREF="mailto:vognsen#post10,tele.dk">vognsen#post10,tele.dk</A>&gt;</LI>
<LI><em>Date</em>: Sun, 13 Dec 1998 14:18:53 +0100</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>
Sunny Gulati wrote:

[snip]
&gt; b) Regarding running my protocol through a second socket, seperate from
&gt; the telnet session:
&gt; 
&gt; I'm thinking, "how would I set this up"?  Two options:
&gt; 
&gt; option 1.  Mud connects back to the client, like FTP.    Bad because
&gt; firewalls won't let people through and stuff.

You're right about the firewall part. Also, unless you use an external
process to connect to the client, you'd run out of file descriptors; you
would basicly have 2 file-descriptors for each player, instead of 1.

&gt; option 2.  Client connects to mud at specific socket number. (has to be
&gt; specific, because even right now we're tunneling a hole to our mud
&gt; through a firewall on a specific port number).  How then do I associate
&gt; the 2nd socket connection with the original player object?
&gt; 
&gt; I suppose that I could tell the client some sort of secret passphrase,
&gt; and it sends that back along the second socket and that's how I make the
&gt; association.  (throw in in some public key cryptography in later
&gt; generations).

Well, my suggestion is this (which is more-or-less what you proposed
yourself):

1. Setup a server socket on a port (either using socket-efuns or by
specifying an extra connection socket (ASCII or binary) in the
configuration file.
2. Setup callbacks (incoming, read, write) for the server socket.
3. The incoming callback (which, obviously, gets called when someone
connects) could/should check if there's any character(s) logged on which
has connected from the same IP as this connection. If there is,
associate the new socket with the player object.
4. The receive() apply should check if it has a pointer to the
client-control socket. If it has, it should send special binary (or
ASCII if that's your preference) to the client-control socket.

That's it! It hasn't been tried out, of course, but it should work.
There's probably a lot more elegant solution to this problem, but this
one was at the top of my head when writing this message.

PS. Has anyone running an LPMUD (i.e. MudOS, Amylaar, etc.) tried to use
a multiplexer for socket connections? This allows a very great number of
open sockets without increasing the kernel file descriptor limit.

- Per Vognsen


</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="00940" HREF="msg00940.html">[MUD-Dev] Re: mud client development systems</A></STRONG>
<UL><LI><EM>From:</EM> Sunny Gulati &lt;sunnywiz#radiks,net&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00954" HREF="msg00954.html">[MUD-Dev] Re: mud client development systems</A></STRONG>
<UL><LI><EM>From:</EM> Per Vognsen &lt;vognsen#post10,tele.dk&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00956" HREF="msg00956.html">[MUD-Dev] Re: mud client development systems</A></STRONG>
<UL><LI><EM>From:</EM> Sunny Gulati &lt;sunnywiz#radiks,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00958.html">[MUD-Dev] Re: mud client development systems</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00960.html">[MUD-Dev] small dev-mud invite</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00956.html">[MUD-Dev] Re: mud client development systems</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00957.html">[MUD-Dev] Re: mud client development systems</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00959"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00959"><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: mud client development systems</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00940" HREF="msg00940.html">[MUD-Dev] Re: mud client development systems</A></strong>, 
Sunny Gulati <a href="mailto:sunnywiz#radiks,net">sunnywiz#radiks,net</a>, Tue 08 Dec 1998, 06:49 GMT
<UL>
<LI><strong><A NAME="00953" HREF="msg00953.html">[MUD-Dev] Re: mud client development systems</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Sat 12 Dec 1998, 06:58 GMT
</LI>
<LI><strong><A NAME="00954" HREF="msg00954.html">[MUD-Dev] Re: mud client development systems</A></strong>, 
Per Vognsen <a href="mailto:vognsen#post10,tele.dk">vognsen#post10,tele.dk</a>, Sat 12 Dec 1998, 18:58 GMT
<UL>
<LI><strong><A NAME="00956" HREF="msg00956.html">[MUD-Dev] Re: mud client development systems</A></strong>, 
Sunny Gulati <a href="mailto:sunnywiz#radiks,net">sunnywiz#radiks,net</a>, Sat 12 Dec 1998, 20:41 GMT
<UL>
<LI><strong><A NAME="00959" HREF="msg00959.html">[MUD-Dev] Re: mud client development systems</A></strong>, 
Per Vognsen <a href="mailto:vognsen#post10,tele.dk">vognsen#post10,tele.dk</a>, Sun 13 Dec 1998, 16:25 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00957" HREF="msg00957.html">[MUD-Dev] Re: mud client development systems</A></strong>, 
Scatter <a href="mailto:scatter#thevortex,com">scatter#thevortex,com</a>, Sat 12 Dec 1998, 23:36 GMT
</LI>
<LI><strong><A NAME="00958" HREF="msg00958.html">[MUD-Dev] Re: mud client development systems</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 13 Dec 1998, 07:12 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00915" HREF="msg00915.html">[MUD-Dev] Re: Introduction</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 07 Dec 1998, 04:43 GMT
<UL>
<LI><strong><A NAME="00929" HREF="msg00929.html">[MUD-Dev] Re: Introduction</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Mon 07 Dec 1998, 21:14 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>