摘要: 字节序 主机大多为小端,即低字节在低地址 网络大多为大端,即高字节在低地址 h:主机host,n:网络network,l:unsigned long,s:unsigned short htonl htons ntohl ntohs socket地址 对于不同协议有不同的格式,使用时强转 比如IPv6 阅读全文
posted @ 2021-03-25 23:32 肥斯大只仔 阅读(139) 评论(0) 推荐(0) 编辑