From: ron@topaz.sensor.com (Ron Natalie)
Subject: Re: Sockets in Ultrix
Date: 1995/08/15 [thread overview]
Message-ID: <40qg18$aog@topaz.sensor.com> (raw)
In-Reply-To: 40oqrh$kof@titan.ci.ua.pt
Ana Maria Santos (ana@news.ci.ua.pt) wrote:
: Resume:
:
: Does an HP sockets aplication need changes to run on a DEC with Ultrix?
: If so, where can I get more info on that changes?
If it was properly written a sockets application will be portable from
one machine to another. However, it's quite possible that you missed
a key thing in your applicatoin. Note that whenever you deal with a
number (short or int) in the network context, it needs to be converted
to network byte order and back. Now on the HP this is a No op because
the defined network byte order is MSBfirst. On the DEC machines (and
Intel) the byte order is the other way around and the functions are NOT
noops and need to be included.
Look up the man page to ntohs, htons...
prev parent reply other threads:[~1995-08-15 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-15 4:00 Sockets in Ultrix Ana Maria Santos
1995-08-15 4:00 ` Ron Natalie [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