| STRUCT SOCKET(9) | Linux Networking | STRUCT SOCKET(9) |
NAME¶
struct_socket - general BSD socket
SYNOPSIS¶
struct socket {
socket_state state;
short type;
unsigned long flags;
struct fasync_struct * fasync_list;
wait_queue_head_t wait;
struct file * file;
struct sock * sk;
const struct proto_ops * ops;
};
MEMBERS¶
state
socket state (SS_CONNECTED, etc)
type
socket type (SOCK_STREAM, etc)
flags
socket flags (SOCK_ASYNC_NOSPACE, etc)
fasync_list
Asynchronous wake up list
wait
wait queue for several uses
file
File back pointer for gc
sk
internal networking protocol agnostic socket
representation
ops
protocol specific socket operations
COPYRIGHT¶
| May 2024 | Kernel Hackers Manual 2.6. |