summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2007-03-08 12:57:12 +0000
committerbms <bms@FreeBSD.org>2007-03-08 12:57:12 +0000
commite8eac47f5e036d87ac6f9f58650156d5d2f78982 (patch)
tree4012ee99b92d5db892687db41f7abe3c7fb54397 /lib
parentbe0a5845fc86db43bb1abdb422f0bec98bdc0e14 (diff)
downloadFreeBSD-src-e8eac47f5e036d87ac6f9f58650156d5d2f78982.zip
FreeBSD-src-e8eac47f5e036d87ac6f9f58650156d5d2f78982.tar.gz
Document SO_ACCEPTCONN.
Submitted by: Vlad GALU (with changes) MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getsockopt.210
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2
index c36c51e..25ef69e 100644
--- a/lib/libc/sys/getsockopt.2
+++ b/lib/libc/sys/getsockopt.2
@@ -28,7 +28,7 @@
.\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95
.\" $FreeBSD$
.\"
-.Dd January 11, 2007
+.Dd March 8, 2007
.Dt GETSOCKOPT 2
.Os
.Sh NAME
@@ -165,6 +165,7 @@ controls generation of
for the socket
.It Dv SO_TIMESTAMP Ta "enables reception of a timestamp with datagrams"
.It Dv SO_BINTIME Ta "enables reception of a timestamp with datagrams"
+.It Dv SO_ACCEPTCONN Ta "get listening status of the socket (get only)"
.It Dv SO_TYPE Ta "get the type of the socket (get only)"
.It Dv SO_ERROR Ta "get and clear error on the socket (get only)"
.El
@@ -408,11 +409,17 @@ and for
.Ed
.Pp
Finally,
+.Dv SO_ACCEPTCONN ,
.Dv SO_TYPE
and
.Dv SO_ERROR
are options used only with
.Fn getsockopt .
+.Dv SO_ACCEPTCONN
+returns whether the socket is currently accepting connections,
+i.e. whether or not the
+.Xr listen 2
+system call was invoked on the socket.
.Dv SO_TYPE
returns the type of the socket, such as
.Dv SOCK_STREAM ;
@@ -453,6 +460,7 @@ on a non-listening socket was attempted.
.El
.Sh SEE ALSO
.Xr ioctl 2 ,
+.Xr listen 2 ,
.Xr recvmsg 2 ,
.Xr socket 2 ,
.Xr getprotoent 3 ,
OpenPOWER on IntegriCloud