Chinaunix首页 | 论坛 | 博客
  • 博客访问: 16444
  • 博文数量: 5
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 55
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-10 12:21
文章分类

全部博文(5)

文章存档

2016年(1)

2015年(4)

我的朋友

发布时间:2015-04-27 21:38:30

1.字节序函数 #include<netinet.h>uint16_t htons(uint16_t host16bitvalue);uint32_t htonl(uint32_t host32bitvalue);返回:网络字节序值uint16_t ntohs(uint16_t net16bitvalue);uint32_t ntohl(uint32_t net32bitvalue);返回:主机字节序值一个测试本机字节序的程序,可参见见unpv12e:intro/byteor.........【阅读全文】

阅读(1521) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册