msg00481.html

1998Q3/msg00481.html · 7.8 KB

From the archive 1998Q3.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Socket&#45;Script: Socket&#45;capabable script language and matching library -->
<!--X-From-R13: "Oqnz X. Fubeagba" <nqnzNcubravk.Bevaprgba.SRG> -->
<!--X-Date: Tue, 4 Aug 1998 21:42:47 &#45;0700 -->
<!--X-Message-Id: 19980805003840.C9686#yuma,Princeton.EDU -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199808050214.TAA06360#under,engr.sgi.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Socket-Script: Socket-capabable script language </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="msg00480.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00482.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00480.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00483.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00481">Author</A>
&nbsp;|&nbsp;<A HREF="#00481">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00481">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</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: Socket-Script: Socket-capabable script language and matching library</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>: Wed, 5 Aug 1998 00:38:40 -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>
I don't have a problem with socket programming _per se_, but I have run
into an interesting problem.

My world-model is room-based.

Thus, when someone connects to a particular server or changes rooms within
a server, the connection-handling daemon checks to see if anyone is in the
room; if not a new process is created, one process per room.

That process then loads all the data for things in the room from the
database and keeps it in in-memory structures.  The player connection gets
a thread within that process.

What I haven't satisfactorily solved is the case where the room already has
players in it and I want to put a new player in the room.  Sending a signal
to the process I want to create a new connection thread in is relatively
straightforward (thus letting the signal handler deal with the
initialization of the player thread), but passing the filehandle that
represents the player's connection into the pre-existing process is not
something I immediately clearly see how to do cleanly.

Any thoughts?  How do I cleanly manage the handoff of a socket connection
from one process into a preexisting and already-initialized process?

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="00483" HREF="msg00483.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#kanga,nu&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00480" HREF="msg00480.html">[MUD-Dev] Socket-Script: Socket-capabable script language and matching library</A></STRONG>
<UL><LI><EM>From:</EM> J C Lawrence &lt;claw#under,engr.sgi.com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00480.html">[MUD-Dev] Socket-Script: Socket-capabable script language and matching library</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00482.html">[MUD-Dev] Re: WIRED: Kilers have more fun</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00480.html">[MUD-Dev] Socket-Script: Socket-capabable script language and matching library</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00483.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00481"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00481"><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: Socket-Script: Socket-capabable script language and matching library</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00492" HREF="msg00492.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
##Make Nylander <a href="mailto:thenewt#use,usit.net">thenewt#use,usit.net</a>, Wed 05 Aug 1998, 16:00 GMT
<UL>
<LI><strong><A NAME="00495" HREF="msg00495.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Wed 05 Aug 1998, 17:13 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00485" HREF="msg00485.html">[MUD-Dev] 3D World Models</A></strong>, 
Leach, Brad BA <a href="mailto:Leach.Brad.BA#bhp,com.au">Leach.Brad.BA#bhp,com.au</a>, Wed 05 Aug 1998, 08:31 GMT
<LI><strong><A NAME="00480" HREF="msg00480.html">[MUD-Dev] Socket-Script: Socket-capabable script language and matching library</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 05 Aug 1998, 02:18 GMT
<UL>
<LI><strong><A NAME="00481" HREF="msg00481.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Wed 05 Aug 1998, 04:42 GMT
<UL>
<LI><strong><A NAME="00483" HREF="msg00483.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Wed 05 Aug 1998, 05:11 GMT
<UL>
<LI><strong><A NAME="00488" HREF="msg00488.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
Oliver Jowett <a href="mailto:oliver#jowett,manawatu.planet.co.nz">oliver#jowett,manawatu.planet.co.nz</a>, Wed 05 Aug 1998, 13:29 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00516" HREF="msg00516.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Thu 06 Aug 1998, 08:39 GMT
<UL>
<LI><strong><A NAME="01017" HREF="msg01017.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 11 Sep 1998, 17:57 GMT
</LI>
</UL>
</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