🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11993

Re: SUN 386i bind() problem

#11993
From: Craig Thomas
Date: Fri, 21 Apr 1989 00:10
13 lines
1092 bytes
mrevox!rwu@bellcore.bellcore.com writes:
>Has anyone run into problems with the bind() call on the SUN 386i?

The trouble is the difference in byte order for your Sun386 host and the
network.  Check into the man page BYTEORDER(3N).  Change is needed for at
least this line:

>	name.sin_port = service->s_port;
should be:
	name.sin_port = htons(service->s_port);

 Craig Thomas 415-596-3646         {sun,lll-tis,pyramid,pacbell}!sybase!craigt
 Sybase, Inc., 6475 Christie Avenue, Emeryville, CA 94608    craigt@sybase.com
Technical Details
Message-ID: <3593@sybase.sybase.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
References: <25900002@mrevox.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: mtxinu!binky!craigt@ucbvax.berkeley.edu (Craig Thomas)
Newsgroups: comp.sys.sun
Subject: Re: SUN 386i bind() problem
Keywords: 386i
Message-ID: <3593@sybase.sybase.com>
Date: 21 Apr 89 00:10:57 GMT
References: <25900002@mrevox.UUCP>
Sender: usenet@rice.edu
Organization: Sybase, Inc.
Lines: 13
Approved: Sun-Spots@rice.edu
Original-Date: 31 Mar 89 05:58:51 GMT
X-Sun-Spots-Digest: Volume 7, Issue 232, message 6 of 21
X-Issue-Reference: v7n213