- 博客(2)
- 资源 (3)
- 收藏
- 关注
转载 Rethat linux网络配置
配置完机器以下的网络配置文件,需要重新启动网络以使修改生效。使用下面的命令来重新启动网络:/etc/rc.d/init.d/network restart或/etc/init.d/network restart(init.d -> rc.d/init.d) 系统网络设备的配置文件保存在“/etc/sysconfig/network-scripts”目录下,手工修改网络地址可以通过修改对应的文件(
2013-06-08 17:27:44 728
转载 htons(), htonl(), ntohs(), ntohl()
将多字节整数类型的数据,从主机的字节顺序转化为网络字节顺序 原型: #include uint32_t htonl(uint32_t hostlong); uint16_t htons(uint16_t hostshort); uint32_t ntohl(uint32_t netlong); uint16_t ntohs(uint16_t netshort); 描述: 不同
2013-06-05 08:56:41 381
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人