io-streams-haproxy-1.0.0.0: cbits/byteorder.c
/* Sigh. According to the docs for <arpa/inet.h>, htonl() and friends may be
implemented as macros only, so I have to re-export functions here to do the
conversions. */
#include <arpa/inet.h>
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);
}