getsockopt.3socket
imports <sys/socket.h>Code embeds cleartext HTTP URL literal
SHA-25676d400488cde15a0669d092d9e7b20db589087f4d8547f111a90476e6bd6da2f
MaleculeH(Cm₂)Md(In)
Evidence
3:23… T
4.\" Copyright 2024 Oxide Computer Company
5.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
6.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
7.\" When distributing Cover …
13:47… -lsocket\fR \fB -lnsl \fR [ \fIlibrary\fR ... ]
14#include <sys/types.h>
15#include <sys/socket.h>
16
17\fBint\fR \fBgetsockopt\fR(\fBint\fR \fIs\fR, \fBint\fR \fIlevel\fR, \fBint\fR \fIoptname\fR, \fBvoid *\fR\fIoptval\fR,
18 \ …
24:16… \fIoptlen\fR);
25.fi
26
27.SH DESCRIPTION
28The \fBgetsockopt()\fR and \fBsetsockopt()\fR functions manipulate options
29associated with a socket. Options may exist at multiple protocol levels; they
30are always pres …
36:58… ontrolling the option.
37For example, to indicate that an option will be interpreted by the \fBTCP\fR,
38set \fIlevel\fR to the protocol number of \fBTC …
45:44… R are used to access option values
46for \fBsetsockopt()\fR. For \fBgetsockopt()\fR, they identify a buffer in which
47the value(s) for the requested option(s) are to be returned. For
48\fBgetsockopt()\fR, \fIo …