1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Socket&#45;Script: Socket&#45;capabable script language and matching library -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Wed, 5 Aug 1998 06:29:43 &#45;0700 -->
<!--X-Message-Id: 199808051327.HAA07651@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--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:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00488.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00490.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00493.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00490.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00489">Author</A>
&nbsp;|&nbsp;<A HREF="#00489">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00489">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>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Wed, 5 Aug 1998 07:27:43 -0600</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;Any thoughts?  How do I cleanly manage the handoff of a socket connection
 &gt;from one process into a preexisting and already-initialized process?

On BSD-style systems, you can do it with the 'send' and 'recv' calls.
For example, see the 'SOL_SOCKET/SCM_RIGHTS' paragraph in the 'recv'
man page (at least that's where it is on this Linux box). I recall it
being more ad-hoc for some other UNIX'es (I did this at work). It is
always passed in the 'msg_control'/'msg_controllen' fields, however.
For SYSV-style systems, there are stream ioctls that you use to pass an
open fd from one process to another. If you have to do it on an old AIX
system, let me know - without a certain patch, doing this can crash
the system hard. Oh yes, if you are using WIN32, I'm not sure - you
would have to check for a DuplicateHandle-style call in winsock.

-- 
Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00488.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00490.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00493.html">[MUD-Dev] Re: 3D World Models</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00490.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#00489"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00489"><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: [IDEAS] Starting from scratch</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="01010" HREF="msg01010.html">[MUD-Dev] Re: [IDEAS] Starting from scratch</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 11 Sep 1998, 02:34 GMT
<UL>
<LI><strong><A NAME="01018" HREF="msg01018.html">[MUD-Dev] Re: [IDEAS] Starting from scratch</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Fri 11 Sep 1998, 18:34 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00494" HREF="msg00494.html">[MUD-Dev] Secrets of the Game Designers</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Wed 05 Aug 1998, 16:51 GMT
<LI><strong><A NAME="00493" HREF="msg00493.html">[MUD-Dev] Re: 3D World Models</A></strong>, 
S. Patrick Gallaty <a href="mailto:choke#sirius,com">choke#sirius,com</a>, Wed 05 Aug 1998, 16:12 GMT
<LI><strong><A NAME="00489" HREF="msg00489.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 05 Aug 1998, 13:29 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00490" HREF="msg00490.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 05 Aug 1998, 13:33 GMT
<UL>
<LI><strong><A NAME="00491" HREF="msg00491.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, 15:05 GMT
<UL>
<LI><strong><A NAME="00496" HREF="msg00496.html">[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Wed 05 Aug 1998, 19:47 GMT
<UL>
<LI><strong><A NAME="00498" HREF="msg00498.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, 21:05 GMT
</LI>
</UL>
</LI>
</UL>
</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>