关于 htonl和htons

htonl   把无符号的长整型数值转为网络字节序

htons 把无符号的短整型数值转为网络字节序,也就是大端模式(big-endian)

posted @ 2022-12-21 10:53  Yapi酱  阅读(91)  评论(0)    收藏  举报