日期:2014-05-16  浏览次数:20775 次

这几个表示什么意思
unsigned long int htonl(unsigned long int hostlong)
unsigned short int htons(unisgned short int hostshort)
unsigned long int ntohl(unsigned long int netlong)
unsigned short int ntohs(unsigned short int netshort)

htonl htons ntohl ntohs 
------解决方案--------------------
h 代表 host , n 代表 network . s 代表 short , l 代表 long 第一个函
数的意义是将本机器上的 long 数据转化为网络上的 long. 其他几个函数的意义也差不多.