/* Sigh. According to the docs for , htonl() and friends may be implemented as macros only, so I have to re-export functions here to do the conversions. */ #include uint32_t iostreams_htonl(uint32_t hostlong) { return htonl(hostlong); } uint16_t iostreams_htons(uint16_t hostshort) { return htons(hostshort); } uint32_t iostreams_ntohl(uint32_t netlong) { return ntohl(netlong); } uint16_t iostreams_ntohs(uint16_t netshort) { return ntohs(netshort); }