| Allegro CL version 10.1 The object described on this page has been modified in the 10.1 release; see the Release Notes. 10.0 version |
Arguments: socket &key reuse-address broadcast keepalive nodelay oob-inline receive-buffer-size send-buffer-size tcp-keepalive-idle-time tcp-keepalive-probe-interval tcp-keepalive-max-probes
Sets system socket options for this socket.
The
meanings of most of the options are described in the description
of make-socket. The various
tcp-keepalive-*
options are described
below.
The following are boolean options, and so specifying a
true value turns them on and specifying nil
turns them off. If you do not specify a value for
one of these options, then the value is not changed.
receive-buffer-size and send-buffer-size take integer arguments. Again, not specifying a value leaves it unchanged.
Note that certain options only work with certain kinds of sockets (e.g. broadcast only works for datagram sockets). See the description of make-socket for more information on what works with what sort of socket.
The tcp-keepalive-idle-time
,
tcp-keepalive-probe-interval
, and
tcp-keepalive-max-probes
keywords set socket options defined by the C constants
TCP_KEEPIDLE
, TCP_KEEPINTVL
,
and TCP_KEEPCNT
on operating systems where they are
supported (none is supported on
Solaris, TCP_KEEPIDLE
is not supported on macOS).
The values should be integers (defaults 7200, 75, and 9
respectively). See the tcp(7) UNIX man page for more information.
It is an error to try to specify a value of an unsupported value. Thus
(socket:set-socket-options socket :tcp-keepalive-idle-time
1)
will signal an error on Solaris and macOS.
See socket.htm for information on sockets.
Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.
| Allegro CL version 10.1 The object described on this page has been modified in the 10.1 release; see the Release Notes. 10.0 version |