追踪LINUXTCPIP代码运行从socket创建开始借鉴.pdf

追踪LINUXTCPIP代码运行从socket创建开始借鉴.pdf

声明:禁止在互联网转载和引用本文的内容 第2章 Socket 的创建 2.1 本章几个重要数据结构 我们先来了解 Socket 数据结构的定义,它在 include/linux/net.h 中。 代码清单 2.1 Socket 结构的定义 117 struct socket { 118 socket_state state; //Socket 的状态 119 unsigned long flags; //Socket 的标志位 120 const struct proto_ops *ops; //Socket 的函数操作表 121 struct fasync_struct *fasync_list; //Socket 的异步唤醒队列 122 struct file *file; //

文档评论(0)

1亿VIP精品文档

相关文档