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