From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,dfbd6623938c95a9 X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,dfbd6623938c95a9 X-Google-Attributes: gid1164f8,public From: ron@topaz.sensor.com (Ron Natalie) Subject: Re: Sockets in Ultrix Date: 1995/08/15 Message-ID: <40qg18$aog@topaz.sensor.com>#1/1 X-Deja-AN: 108209418 references: <40oqrh$kof@titan.ci.ua.pt> followup-to: comp.sys.dec,comp.unix.ultrix organization: Sensor Systems newsgroups: comp.sys.dec,comp.unix.ultrix 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...