Linux Kernel
3.7.1
|
#include <uapi/asm/socket.h>
Go to the source code of this file.
Macros | |
#define | SOCK_MAX (SOCK_PACKET + 1) |
#define | SOCK_TYPE_MASK 0xf |
#define | SOCK_CLOEXEC O_CLOEXEC |
#define | SOCK_NONBLOCK O_NONBLOCK |
#define | ARCH_HAS_SOCKET_TYPES 1 |
Enumerations | |
enum | sock_type { SOCK_DGRAM = 1, SOCK_STREAM = 2, SOCK_RAW = 3, SOCK_RDM = 4, SOCK_SEQPACKET = 5, SOCK_DCCP = 6, SOCK_PACKET = 10, SOCK_STREAM = 1, SOCK_DGRAM = 2, SOCK_RAW = 3, SOCK_RDM = 4, SOCK_SEQPACKET = 5, SOCK_DCCP = 6, SOCK_PACKET = 10 } |
#define SOCK_MAX (SOCK_PACKET + 1) |
#define SOCK_NONBLOCK O_NONBLOCK |
enum sock_type |
sock_type - Socket types
Please notice that for binary compat reasons MIPS has to override the enum sock_type in include/linux/net.h, so we define ARCH_HAS_SOCKET_TYPES here.
- datagram (conn.less) socket - stream (connection) socket - raw socket - reliably-delivered message - sequential packet socket - linux specific way of getting packets at the dev level. For writing rarp and other similar things on the user level.