UNIX字节序转换函数(ntohl,ntohs, htonl, htons)实现问题上述四个函数在arpa/inet.h中定义如下:#define
UNIX 字节序转换函数(ntohl,ntohs, htonl, htons) 实现问题
上述四个函数在<arpa/inet.h>中定义如下:
#define ntohl(x) (x)
#define ntohs(x) (x)
#define htonl(x) (x)
#define htons(x) (x)
请问如上空的宏定义,是如何实现字节序的转换?
[解决办法]
根本就没有作转换 ^o^
莫非就是大端的系统? 等待解释
[解决办法]
