htonl、ntohl、htons、ntohs函数实现
来源:互联网 发布:java前台上传文件 编辑:程序博客网 时间:2024/06/06 08:58
typedef unsigned short int uint16;
typedef unsigned long int uint32;
// 短整型大小端互换
#define BigLittleSwap16(A)
#define BigLittleSwap32(A)
int checkCPUendian()
{
}
// 模拟htonl函数,本机字节序转网络字节序
unsigned long int t_htonl(unsigned long int h)
{
}
// 模拟ntohl函数,网络字节序转本机字节序
unsigned long int t_ntohl(unsigned long int n)
{
}
// 模拟htons函数,本机字节序转网络字节序
unsigned short int t_htons(unsigned short int h)
{
}
// 模拟ntohs函数,网络字节序转本机字节序
unsigned short int t_ntohs(unsigned short int n)
{
}
转载地址:http://blog.csdn.net/lizhi200404520/article/details/7290193
- 模拟htonl、ntohl、htons、ntohs函数实现
- htonl、ntohl、htons、ntohs函数实现
- htonl、htons、ntohl、ntohs函数实现
- 【整理】htonl、ntohl、htons、ntohs函数实现
- htonl、ntohl、htons、ntohs函数实现
- htonl、ntohl、htons、ntohs函数实现
- htonl ntohl htons ntohs 函数实现
- htonl、ntohl、htons、ntohs函数实现
- htonl(), ntohl(), htons(), ntohs() 函数
- htonl(), ntohl(), htons(), ntohs() 函数
- htonl(), ntohl(), htons(), ntohs() 函数
- 为什么需要htons(), ntohl(), ntohs(),htons() 函数 .模拟htonl、ntohl、htons、ntohs函数实现
- 为什么需要htons(), ntohl(), ntohs(),htons() 函数 .模拟htonl、ntohl、htons、ntohs函数实现
- htons(), htonl(), ntohs(), ntohl()
- ntohs(),ntohl(),htons(),htonl(),
- htons(), htonl(), ntohs(), ntohl()
- htons(), htonl(), ntohs(), ntohl()
- htons,htonl,ntohs,ntohl
- Android* 应用性能调试
- 微软面试100题之第6题
- android app 集成支付宝
- Zxing二维码
- 异常处理SEH(Structured Exception Handling)
- htonl、ntohl、htons、ntohs函数实现
- 十一周——存储班长信息的学生类
- python的map
- warden 网络隔离分析
- 使用 PowerMock 以及 Mockito 实现单元测试
- Redis以及Redis的php扩展安装无错版
- POJ 1321 棋盘问题(DFS)
- 20140509收盘小结
- 学习ARM体系结构的意义