ntohl(),htonl(),ntohs()
来源:互联网 发布:学编程需要什么学历 编辑:程序博客网 时间:2024/06/05 07:22
ntohl()
将一个无符号长整形数从网络字节顺序转换为主机字节顺序。
htonl()
将主机的无符号长整形数转换成网络字节顺序。
#include <arpa/inet.h>
uint32_t htonl(uint32_t hostlong);
hostlong:主机字节顺序表达的32位数。
本函数将一个32位数从主机字节顺序转换成网络字节顺序。
ntohs()
将一个无符号短整形数从网络字节顺序转换为主机字节顺序。
#include <netinet/in.h>
uint16_t ntohs(uint16_t netshort);
netshort:一个以网络字节顺序表达的16位数。
本函数将一个16位数由网络字节顺序转换为主机字节顺序。
功能是将一个点分十进制的IP转换成一个长整数型数(u_long类型)
0 0
- htons(), htonl(), ntohs(), ntohl()
- ntohs(),ntohl(),htons(),htonl(),
- htons(), htonl(), ntohs(), ntohl()
- htons(), htonl(), ntohs(), ntohl()
- htons,htonl,ntohs,ntohl
- htons(), htonl(), ntohs(), ntohl()
- htonl(), ntohl(), htons(), ntohs().
- htons,htonl,ntohs,ntohl
- htonl ntohl htons ntohs
- htons ntohs htonl ntohl
- ntohl(),htonl(),ntohs()
- htonl、htons、ntohl、ntohs
- ntohs, ntohl, htons,htonl
- ntohs,htons,ntohl,htonl
- ntohl();ntohs();htons();htonl() 说明
- htonl(), ntohl(), htons(), ntohs() 函数
- htonl(), ntohl(), htons(), ntohs() 函数
- htons(), htonl(), ntohs(), ntohl()详解
- 贫农的大数据之五(Hadoop集群部署)
- C#开发android之alertdialog用法
- Activity学习认知
- 超棒的翻译--ASIHTTPRequest使用指南
- CloudStack + XenServer 部署 – 高级网络功能应用(10)
- ntohl(),htonl(),ntohs()
- A*算法入门--A* Pathfinding for Beginners
- 下载visual studio
- Java 枚举7常见种用法
- Redis数据类型
- Lucene实战(一)Lucene介绍及HelloWorld运行(附Eclipse工程)
- 关于图片压缩(大小和质量两种方式)
- 【android】数据流量的默认配置
- Qt利用qrc文件添加图标资源