home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17738 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  841 b 

  1. Path: sparky!uunet!gatech!pitt.edu!stern
  2. From: stern+@pitt.edu (Eric G Stern)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: What is htonl() ?
  5. Message-ID: <1107@blue.cis.pitt.edu>
  6. Date: 23 Dec 92 12:08:33 GMT
  7. References: <72250@cup.portal.com>
  8. Sender: news+@pitt.edu
  9. Organization: University of Pittsburgh
  10. Lines: 11
  11.  
  12.  
  13. htonl() is a function from the BSD networking library.  It converts
  14. a long from "host byte order" to "network byte order".  This is to
  15. deal with certain architectures that store four byte objects with
  16. the least significant byte in the lower byte address, while the
  17. (BSD) network specifications say that four byte objects (network addresses
  18. for instance) are stored and transmitted with the most significant byte
  19. first.  For the Amiga, and most unix-boxes (except DEC) this function
  20. is probably a no-op.
  21.  
  22.                 Eric Stern
  23.