悉野小楼

导航

htons, htonl, ntohs, ntohl的意思

htons() 
将主机的无符号短整形数转换成网络字节顺序. host - > net  (short)

htonl() 

将主机的无符号长整形数转换成网络字节顺序. host - > net  (long)

ntohs() 
将主机的
网络字节顺序转换成
无符号短整形数. host - > net  (short)
ntohl() 将主机的
网络字节顺序转换成
无符号长整形数
. host - > net  (long)

 


 


 

posted on 2012-02-16 23:08  悉野  阅读(384)  评论(0编辑  收藏  举报