Article View: comp.protocols.misc
Article #550how to transfer floats between different CPUs
From: Tom Leitner
Date: Mon, 14 Dec 1992 09:51
Date: Mon, 14 Dec 1992 09:51
19 lines
1309 bytes
1309 bytes
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
Technical Details
Message-ID:
<1992Dec14.095136.4469@news.tu-graz.ac.at>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!news.tu-graz.ac.at!piassun1!tomShow Full Headers
Complete Article Headers
Newsgroups: comp.protocols.misc,comp.os.os2.networking,vmsnet.networks.misc Path: arc1-ca.pugleaf.net!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