Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
socket.h File Reference
#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
}
 

Macro Definition Documentation

#define ARCH_HAS_SOCKET_TYPES   1

Definition at line 48 of file socket.h.

#define SOCK_CLOEXEC   O_CLOEXEC

Definition at line 45 of file socket.h.

#define SOCK_MAX   (SOCK_PACKET + 1)

Definition at line 39 of file socket.h.

#define SOCK_NONBLOCK   O_NONBLOCK

Definition at line 46 of file socket.h.

#define SOCK_TYPE_MASK   0xf

Definition at line 42 of file socket.h.

Enumeration Type Documentation

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.

Enumerator:
SOCK_DGRAM 
SOCK_STREAM 
SOCK_RAW 
SOCK_RDM 
SOCK_SEQPACKET 
SOCK_DCCP 
SOCK_PACKET 
SOCK_STREAM 
SOCK_DGRAM 
SOCK_RAW 
SOCK_RDM 
SOCK_SEQPACKET 
SOCK_DCCP 
SOCK_PACKET 

Definition at line 29 of file socket.h.