Article View: comp.unix.programmer
Article #1312Host->Network Byte order and the reverse
From: Jim Peters
Date: Sun, 02 Dec 1990 00:29
Date: Sun, 02 Dec 1990 00:29
9 lines
702 bytes
702 bytes
Before I get bogged down in the nasty details, does anyone have a pair of C functions that will convert the bytes of a structure from host to network order and back? It would be best if it could run under Sun4/3, Umax 4.2/4.3 and Ultrix. Thanks, Jim.
Technical Details
Message-ID:
<JOSHUA5.90Dec1192905@bucsf.bu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!xylogics!bu.edu!nntp-read!joshua5Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!xylogics!bu.edu!nntp-read!joshua5 From: joshua5@bucsf.bu.edu (Jim Peters) Newsgroups: comp.unix.programmer Subject: Host->Network Byte order and the reverse Message-ID: <JOSHUA5.90Dec1192905@bucsf.bu.edu> Date: 2 Dec 90 00:29:05 GMT Sender: news@bu.edu.bu.edu Distribution: comp Organization: Boston University Computer Science Department Lines: 9