diff options
author | David CARLIER <devnexen@gmail.com> | 2022-05-02 11:33:57 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-09-21 15:23:50 +0900 |
commit | 8a9dfb676b0df74644ddd1db6cfefdd2c9283e8a (patch) | |
tree | fbaa78221a06fa18967cdc42f2d94f856b3c0c01 /ext | |
parent | 017573c3b373290e52f6e9a8fca217039980247d (diff) | |
download | ruby-8a9dfb676b0df74644ddd1db6cfefdd2c9283e8a.tar.gz |
sockets add `TCP_CONNECTION_INFO` and `TCP_KEEPALIVE` constants.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/mkconstants.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 4de4b2248c..5e1fcc40d1 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -671,9 +671,11 @@ IPX_TYPE TCP_NODELAY nil Don't delay sending to coalesce packets TCP_MAXSEG nil Set maximum segment size +TCP_CONNECTION_INFO nil Retrieve information about this socket (macOS) TCP_CORK nil Don't send partial frames (Linux 2.2, glibc 2.2) TCP_DEFER_ACCEPT nil Don't notify a listening socket until data is ready (Linux 2.4, glibc 2.2) TCP_INFO nil Retrieve information about this socket (Linux 2.4, glibc 2.2) +TCP_KEEPALIVE nil Idle time before keepalive probes are sent (macOS) TCP_KEEPCNT nil Maximum number of keepalive probes allowed before dropping a connection (Linux 2.4, glibc 2.2) TCP_KEEPIDLE nil Idle time before keepalive probes are sent (Linux 2.4, glibc 2.2) TCP_KEEPINTVL nil Time between keepalive probes (Linux 2.4, glibc 2.2) |