From: neideck@kar.dec.com (Burkhard Neidecker-Lutz)
Subject: Re: Problem with getservbyname on ALPHA/OSF1 box
Date: 1998/04/22 [thread overview]
Message-ID: <6hlf3r$it6@usenet.pa.dec.com> (raw)
In-Reply-To: 6h2mrf$eq$1@nnrp1.dejanews.com
In article <6h2mrf$eq$1@nnrp1.dejanews.com> howard@tibinc.com writes:
>Hi guys
>
>I've been porting an application to a DEC alpha box and I am having trouble
>with getservbyname. Specifically after my call to getservbyname, the value of
>the s_port field in the servent structure returned is 37146, which is nowhere
>close to the value of the service I asked for.
Wild guess: The service you wanted has the number 6801 instead of 37146 ?
Could this be that the field is in network byte order (big-endian)
and you access it directly in host byte order (little-endian) without
the ntohs() call ?
Burkhard Neidecker-Lutz
EUROMEDIA - Distributed Multimedia Archives for Cooperative TV Production
CEC Karlsruhe , European Applied Research Center, Digital Equipment Corp.
email: neideck@kar.dec.com
prev parent reply other threads:[~1998-04-22 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-15 4:00 Problem with getservbyname on ALPHA/OSF1 box howard
1998-04-16 4:00 ` Paul Black
1998-04-22 4:00 ` Burkhard Neidecker-Lutz [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