home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt.edu!stern
- From: stern+@pitt.edu (Eric G Stern)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: What is htonl() ?
- Message-ID: <1107@blue.cis.pitt.edu>
- Date: 23 Dec 92 12:08:33 GMT
- References: <72250@cup.portal.com>
- Sender: news+@pitt.edu
- Organization: University of Pittsburgh
- Lines: 11
-
-
- htonl() is a function from the BSD networking library. It converts
- a long from "host byte order" to "network byte order". This is to
- deal with certain architectures that store four byte objects with
- the least significant byte in the lower byte address, while the
- (BSD) network specifications say that four byte objects (network addresses
- for instance) are stored and transmitted with the most significant byte
- first. For the Amiga, and most unix-boxes (except DEC) this function
- is probably a no-op.
-
- Eric Stern
-