1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]	OT: Socket programming &#45; platform specific -->
<!--X-From-R13: ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) -->
<!--X-Date: Fri, 23 Jan 1998 15:49:44 +0000 -->
<!--X-Message-Id: 9801231451.8r8g@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, Re: [MUD-Dev]	OT: Socket programming - platform specific</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="msg00297.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00296.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00301.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00304.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00295">Author</A>
&nbsp;|&nbsp;<A HREF="#00295">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00295">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]	OT: Socket programming - platform specific</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]	OT: Socket programming - platform specific</LI>
<LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI>
<LI><em>Date</em>: Fri, 23 Jan 98 07:51:43 MST</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
[Jon Lambert:]

:Win32s,Win95 and WinNT sockets programming is virtually identical to
:Unix BSD sockets.

Nod. Socket programming experience, at least at the level normally needed
for MUDs, should be interchangeable between UNIX and Win32. The *only*
Windows program I've done was to port my ToyMUD server to it, and the
changes were small (mostly involving the points Jon has mentioned about
the WSAStartup and WSAGetNextError stuff). I did find that WinSock is
a bit pickier than UNIX - it cared about a wrongly initialized family in
an address, whereas UNIX didn't. The one issue I did not manage to resolve
is that of shutdown - a control-C typed in the shell window running the
server creates a thread in the server process, but does *not* interrupt
any currently executing WinSock call. So, using that technique to shut
down your server isn't fully satisfactory. However, WinSock seems to
silently shorten the waits on 'select' to about 10 seconds, so if you
have a 'ShutDown' flag which is checked in your main idle loop, you'll
end up shutting down within 10 seconds of the control-C.

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

</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="00304" HREF="msg00304.html">Re: [MUD-Dev] OT: Socket programming - platform specific</A></strong>
<ul compact><li><em>From:</em> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00297.html">RE: [MUD-Dev]  Graphical mud perspectives</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00296.html">Re: [MUD-Dev] The impact of the web on muds</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00301.html">Clients based on Netscape 5?</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00304.html">Re: [MUD-Dev] OT: Socket programming - platform specific</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00295"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00295"><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] Clients based on Netscape 5?</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00310" HREF="msg00310.html">Re: [MUD-Dev] Clients based on Netscape 5?</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sun 25 Jan 1998, 07:36 GMT
<UL>
<LI><strong><A NAME="00311" HREF="msg00311.html">Re: [MUD-Dev] Clients based on Netscape 5?</A></strong>, 
Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Sun 25 Jan 1998, 18:28 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00442" HREF="msg00442.html">Re: [MUD-Dev] Clients based on Netscape 5?</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Thu 12 Feb 1998, 22:07 GMT
</LI>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00301" HREF="msg00301.html">Clients based on Netscape 5?</A></strong>, 
Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Sat 24 Jan 1998, 01:16 GMT
<LI><strong><A NAME="00295" HREF="msg00295.html">Re: [MUD-Dev]	OT: Socket programming - platform specific</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 Jan 1998, 15:49 GMT
<UL>
<LI><strong><A NAME="00304" HREF="msg00304.html">Re: [MUD-Dev] OT: Socket programming - platform specific</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 24 Jan 1998, 19:46 GMT
<UL>
<LI><strong><A NAME="00306" HREF="msg00306.html">Re: [MUD-Dev] OT: Socket programming - platform specific</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sun 25 Jan 1998, 01:15 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00297" HREF="msg00297.html">RE: [MUD-Dev]  Graphical mud perspectives</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Fri 23 Jan 1998, 15:47 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00298" HREF="msg00298.html">Re: [MUD-Dev]  Graphical mud perspectives</A></strong>, 
Mike Sellers <a href="mailto:mike#online-alchemy,com">mike#online-alchemy,com</a>, Fri 23 Jan 1998, 17:42 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>