diff options
author | Christopher Baines <mail@cbaines.net> | 2022-09-18 16:17:34 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-10-12 22:28:07 +0200 |
commit | 6847365a9f69c9b5548ade9d1e1197af8266c368 (patch) | |
tree | 7d2f48f24e1c8a1d93ff5273627e39aa67bf6553 /doc | |
parent | 328d6039d28561f5f275ff6cd1c71ecf64167f2f (diff) | |
download | guile-6847365a9f69c9b5548ade9d1e1197af8266c368.tar.gz |
Define SO_RCVTIMEO and SO_SNDTIMEO.
These are important for reliable networking, since they prevent network
operations from hanging indefinitely.
* libguile/socket.c (scm_init_socket): Define SO_RCVTIMEO and
SO_SNDTIMEO.
(scm_getsockopt, scm_setsockopt): Include SO_RCVTIMEO and SO_SNDTIMEO in
docstring and handle them.
* doc/ref/posix.texi (Network Sockets and Communication): Document them.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ref/posix.texi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index 6a9f54102..9861f7b45 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -3247,6 +3247,8 @@ Manual}, or @command{man 7 socket}. @defvarx SO_NO_CHECK @defvarx SO_PRIORITY @defvarx SO_REUSEPORT +@defvarx SO_RCVTIMEO +@defvarx SO_SNDTIMEO The @var{value} taken or returned is an integer. @end defvar |