Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/getsockopt.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95 | .\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 8, 2021 | .Dd August 24, 2022 | ||||
.Dt GETSOCKOPT 2 | .Dt GETSOCKOPT 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm getsockopt , | .Nm getsockopt , | ||||
.Nm setsockopt | .Nm setsockopt | ||||
.Nd get and set options on sockets | .Nd get and set options on sockets | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | |||||
.It Dv SO_REUSEPORT_LB Ta "enables duplicate address and port bindings with load balancing" | .It Dv SO_REUSEPORT_LB Ta "enables duplicate address and port bindings with load balancing" | ||||
.It Dv SO_KEEPALIVE Ta "enables keep connections alive" | .It Dv SO_KEEPALIVE Ta "enables keep connections alive" | ||||
.It Dv SO_DONTROUTE Ta "enables routing bypass for outgoing messages" | .It Dv SO_DONTROUTE Ta "enables routing bypass for outgoing messages" | ||||
.It Dv SO_LINGER Ta "linger on close if data present" | .It Dv SO_LINGER Ta "linger on close if data present" | ||||
.It Dv SO_BROADCAST Ta "enables permission to transmit broadcast messages" | .It Dv SO_BROADCAST Ta "enables permission to transmit broadcast messages" | ||||
.It Dv SO_OOBINLINE Ta "enables reception of out-of-band data in band" | .It Dv SO_OOBINLINE Ta "enables reception of out-of-band data in band" | ||||
.It Dv SO_SNDBUF Ta "set buffer size for output" | .It Dv SO_SNDBUF Ta "set buffer size for output" | ||||
.It Dv SO_RCVBUF Ta "set buffer size for input" | .It Dv SO_RCVBUF Ta "set buffer size for input" | ||||
.It Dv SO_RCVBUFFORCE Ta "set buffer size for input ignoring system limit" | |||||
.It Dv SO_SNDLOWAT Ta "set minimum count for output" | .It Dv SO_SNDLOWAT Ta "set minimum count for output" | ||||
.It Dv SO_RCVLOWAT Ta "set minimum count for input" | .It Dv SO_RCVLOWAT Ta "set minimum count for input" | ||||
.It Dv SO_SNDTIMEO Ta "set timeout value for output" | .It Dv SO_SNDTIMEO Ta "set timeout value for output" | ||||
.It Dv SO_RCVTIMEO Ta "set timeout value for input" | .It Dv SO_RCVTIMEO Ta "set timeout value for input" | ||||
.It Dv SO_ACCEPTFILTER Ta "set accept filter on listening socket" | .It Dv SO_ACCEPTFILTER Ta "set accept filter on listening socket" | ||||
.It Dv SO_NOSIGPIPE Ta | .It Dv SO_NOSIGPIPE Ta | ||||
controls generation of | controls generation of | ||||
.Dv SIGPIPE | .Dv SIGPIPE | ||||
▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | |||||
buffer sizes allocated for output and input buffers, respectively. | buffer sizes allocated for output and input buffers, respectively. | ||||
The buffer size may be increased for high-volume connections, | The buffer size may be increased for high-volume connections, | ||||
or may be decreased to limit the possible backlog of incoming data. | or may be decreased to limit the possible backlog of incoming data. | ||||
The system places an absolute maximum on these values, which is accessible | The system places an absolute maximum on these values, which is accessible | ||||
through the | through the | ||||
.Xr sysctl 3 | .Xr sysctl 3 | ||||
MIB variable | MIB variable | ||||
.Dq Li kern.ipc.maxsockbuf . | .Dq Li kern.ipc.maxsockbuf . | ||||
.Dv SO_RCVBUFFORCE | |||||
is a priviledged version of | |||||
.Dv SO_RCVBUF | |||||
adjusting the input buffer size ignoring system-wide limits. | |||||
.Pp | .Pp | ||||
.Dv SO_SNDLOWAT | .Dv SO_SNDLOWAT | ||||
is an option to set the minimum count for output operations. | is an option to set the minimum count for output operations. | ||||
Most output operations process all of the data supplied | Most output operations process all of the data supplied | ||||
by the call, delivering data to the protocol for transmission | by the call, delivering data to the protocol for transmission | ||||
and blocking as necessary for flow control. | and blocking as necessary for flow control. | ||||
Nonblocking output operations will process as much data as permitted | Nonblocking output operations will process as much data as permitted | ||||
subject to flow control without blocking, but will process no data | subject to flow control without blocking, but will process no data | ||||
▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines |