home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / misc / 878 next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.3 KB

  1. Xref: sparky comp.protocols.misc:878 comp.os.os2.networking:2451 vmsnet.networks.misc:140
  2. Newsgroups: comp.protocols.misc,comp.os.os2.networking,vmsnet.networks.misc
  3. Path: sparky!uunet!news.univie.ac.at!news.tu-graz.ac.at!piassun1!tom
  4. From: tom@piassun1.joanneum.ac.at (Tom Leitner)
  5. Subject: how to transfer floats between different CPUs
  6. Message-ID: <1992Dec14.095136.4469@news.tu-graz.ac.at>
  7. Originator: tom@piassun1
  8. Sender: news@news.tu-graz.ac.at (USENET News System)
  9. Nntp-Posting-Host: piassun1.joanneum.ac.at
  10. Organization: Joanneum Research, Graz, Austria
  11. Date: Mon, 14 Dec 92 09:51:36 GMT
  12. Lines: 20
  13.  
  14. Hi netters,
  15.  
  16. I wrote a client/server communication library using the socket()
  17. library. Shorts and longs can be transmitted between different
  18. CPU types (e.g. VAX, R3000, 80386) without problems using the
  19. htonl, htons, ntohl and ntohs calls. Though my application requires
  20. to transmit floats as well.
  21.  
  22. Now for my question: Is there any standard for sending floats
  23. across the network? What I'm looking for are routines like
  24. "htonf" and "ntohf", similar to the integer routines.
  25.  
  26. Please respond by e-mail to tom@piassun1.joanneum.ac.at
  27.  
  28. (Of course if there is enough demand I'll post a summary of the
  29. answers I get to this question as well as to my former request
  30. about sockets() on VMS for Decnet)
  31.  
  32. Thanks and regards from Austria -- Tom Leitner, Joanneum Research
  33.  
  34.