1ENUM SOCK_TYPE(9)              Linux Networking              ENUM SOCK_TYPE(9)
2
3
4

NAME

6       enum_sock_type - Socket types
7

SYNOPSIS

9       enum sock_type {
10         SOCK_STREAM,
11         SOCK_DGRAM,
12         SOCK_RAW,
13         SOCK_RDM,
14         SOCK_SEQPACKET,
15         SOCK_DCCP,
16         SOCK_PACKET
17       };
18

CONSTANTS

20       SOCK_STREAM
21           stream (connection) socket
22
23       SOCK_DGRAM
24           datagram (conn.less) socket
25
26       SOCK_RAW
27           raw socket
28
29       SOCK_RDM
30           reliably-delivered message
31
32       SOCK_SEQPACKET
33           sequential packet socket
34
35       SOCK_DCCP
36           Datagram Congestion Control Protocol socket
37
38       SOCK_PACKET
39           linux specific way of getting packets at the dev level. For writing
40           rarp and other similar things on the user level.
41

DESCRIPTION

43       When adding some new socket type please grep ARCH_HAS_SOCKET_TYPE
44       include/asm-* /socket.h, at least MIPS overrides this enum for binary
45       compat reasons.
46
48Kernel Hackers Manual 2.6.       November 2011               ENUM SOCK_TYPE(9)
Impressum