摘要:
有4个函数用于字节序的转换。分别针对2字节和4字节。单个字节自然没有字节序的问题。htonl(3) - Linux man pageNamehtonl, htons, ntohl, ntohs - convert values between host and network byte orderSynopsis#include <arpa/inet.h>uint32_t htonl(uint32_t hostlong);uint16_t htons(uint16_t hostshort);uint32_t ntohl(uint32_t netlong);uint16_t ntoh 阅读全文
posted @ 2010-09-25 17:47
arm-linux
阅读(375)
评论(0)
推荐(0)