'\" t .\" Title: enum sock_type .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ENUM SOCK_TYPE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" enum_sock_type \- Socket types .SH "SYNOPSIS" .sp .nf enum sock_type { SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_RDM, SOCK_SEQPACKET, SOCK_DCCP, SOCK_PACKET }; .fi .SH "CONSTANTS" .PP SOCK_STREAM .RS 4 stream (connection) socket .RE .PP SOCK_DGRAM .RS 4 datagram (conn\&.less) socket .RE .PP SOCK_RAW .RS 4 raw socket .RE .PP SOCK_RDM .RS 4 reliably\-delivered message .RE .PP SOCK_SEQPACKET .RS 4 sequential packet socket .RE .PP SOCK_DCCP .RS 4 Datagram Congestion Control Protocol socket .RE .PP SOCK_PACKET .RS 4 linux specific way of getting packets at the dev level\&. For writing rarp and other similar things on the user level\&. .RE .SH "DESCRIPTION" .PP When adding some new socket type please grep ARCH_HAS_SOCKET_TYPE include/asm\-* /socket\&.h, at least MIPS overrides this enum for binary compat reasons\&. .SH "COPYRIGHT" .br