'\" t .\" Title: struct socket .\" 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 "STRUCT SOCKET" "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" struct_socket \- general BSD socket .SH "SYNOPSIS" .sp .nf struct socket { socket_state state; short type; unsigned long flags; struct socket_wq __rcu * wq; struct file * file; struct sock * sk; const struct proto_ops * ops; }; .fi .SH "MEMBERS" .PP state .RS 4 socket state (\fBSS_CONNECTED\fR, etc) .RE .PP type .RS 4 socket type (\fBSOCK_STREAM\fR, etc) .RE .PP flags .RS 4 socket flags (\fBSOCK_NOSPACE\fR, etc) .RE .PP wq .RS 4 wait queue for several uses .RE .PP file .RS 4 File back pointer for gc .RE .PP sk .RS 4 internal networking protocol agnostic socket representation .RE .PP ops .RS 4 protocol specific socket operations .RE .SH "COPYRIGHT" .br