Solaris offers 32 bit ntohl and htonl macros, but does not provide a 64 bit equivalent. xxxxx@xxxxx.com 2004-11-05 18:25:06 GMT
Add the following code to relivant client programs/headers: #ifndef htonll #ifdef _BIG_ENDIAN #define htonll(x) (x) #define ntohll(x) (x) #else #define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl(x >> 32)) #define ntohll(x) ((((uint64_t)ntohl(x)) << 32) + ntohl(x >> 32)) #endif #endif xxxxx@xxxxx.com 2004-11-05 18:25:06 GMT
N/A
Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines | Site Map | HelpYour use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.Copyright © 1995-2009 Sun Microsystems, Inc.