From: dave@opus.csd.uwm.edu (Dave Rasmussen)
Subject: Re: Alpha/OSF network code question
Date: 31 May 1993 20:46:09 GMT [thread overview]
Message-ID: <1udqqhINNq18@uwm.edu> (raw)
In-Reply-To: 1ub1cpINNgpb@uwm.edu
From article <1ub1cpINNgpb@uwm.edu>, by dave@csd4.csd.uwm.edu (Dave Rasmussen):
>
> I've been looking at this code a while now and can't figure out what
> conversion I need to do to the port I get from the getservbyname
> in order to bind a name to the proper socket. Any advice to this or
> anything else I'm doing would be appreciated.
>
> sa.sin_port = htons(sp->s_port); /* what conversion should I use here??? */
> sa.sin_family = hp->h_addrtype;
Matt Thomas from DEC pointed out that I needed to bzero the socketaddr
structure of any remnant garbage before using it. Problem solved.
Thanks Matt!
--
Dave Rasmussen - SysAdm/Hacker/Consulting Manager, UWM Computing Svcs Div.
Internet:dave@uwm.edu, Uucp:uwm!dave, Bitnet:dave%uwm.edu@INTERBIT
AT&T:414-229-5133 USmail:Box 413 EMS380,Milwaukee,WI 53201 HAM: N9REJ
prev parent reply other threads:[~1993-05-31 20:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-05-30 19:19 Alpha/OSF network code question Dave Rasmussen
1993-05-31 20:46 ` Dave Rasmussen [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox