摘要:
一、socket函数 1、头文件: #include <sys/types.h> /* See NOTES */ #include <sys/socket.h> 2、函数原型: int socket(int domain, int type, int protocol); socket函数类似于op 阅读全文
posted @ 2016-11-23 20:57
xtusir
阅读(30915)
评论(0)
推荐(3)
摘要:
1.介绍 Linux网络程序与内核交互的方法是通过ioctl来实现的,ioctl与网络协议栈进行交互,可得到网络接口的信息,网卡设备的映射属性和配置网络接口.并且还能够查看,修改,删除ARP高速缓存的信息,所以,我们有必要了解一下ioctl函数的具体实现. 2.相关结构体与相关函数 #include 阅读全文
posted @ 2016-11-23 18:01
xtusir
阅读(2515)
评论(0)
推荐(0)

浙公网安备 33010602011771号