1STRUCT SOCKET(9)               Linux Networking               STRUCT SOCKET(9)
2
3
4

NAME

6       struct_socket - general BSD socket
7

SYNOPSIS

9       struct socket {
10         socket_state state;
11         short type;
12         unsigned long flags;
13         struct socket_wq * wq;
14         struct file * file;
15         struct sock * sk;
16         const struct proto_ops * ops;
17       };
18

MEMBERS

20       state
21           socket state (SS_CONNECTED, etc)
22
23       type
24           socket type (SOCK_STREAM, etc)
25
26       flags
27           socket flags (SOCK_ASYNC_NOSPACE, etc)
28
29       wq
30           wait queue for several uses
31
32       file
33           File back pointer for gc
34
35       sk
36           internal networking protocol agnostic socket representation
37
38       ops
39           protocol specific socket operations
40
42Kernel Hackers Manual 2.6.       November 2011                STRUCT SOCKET(9)
Impressum