diff options
author | Andy Pan <i@andypan.me> | 2025-05-21 14:43:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-21 08:43:53 +0200 |
commit | 3a9a6e3e6bc78565ddf94cf462c9877c1004bb62 (patch) | |
tree | d684b2e44f5dc44ac608ca681422dc9f33c142a6 /src/unix/internal.h | |
parent | 71ec5c0fcdd867b64c46ade1e0a6b59101281a4a (diff) | |
download | libuv-main.tar.gz libuv-main.zip |
Implement `uv_tcp_keepalive_ex` function that extends
`uv_tcp_keepalive` to support `TCP_KEEPINTVL` and `TCP_KEEPCN`
socket options in addition to TCP_KEEPIDLE.
Diffstat (limited to 'src/unix/internal.h')
-rw-r--r-- | src/unix/internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unix/internal.h b/src/unix/internal.h index a1d7d436..89b73e2b 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -299,7 +299,11 @@ int uv__slurp(const char* filename, char* buf, size_t len); /* tcp */ int uv__tcp_listen(uv_tcp_t* tcp, int backlog, uv_connection_cb cb); int uv__tcp_nodelay(int fd, int on); -int uv__tcp_keepalive(int fd, int on, unsigned int delay); +int uv__tcp_keepalive(int fd, + int on, + unsigned int idle, + unsigned int intvl, + unsigned int cnt); /* tty */ void uv__tty_close(uv_tty_t* handle); |