From 7aa126176921b044baab3de357b6afff2ed90355 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 5 Oct 2012 15:05:30 +0200 Subject: [PATCH] include: fix confusing uv_tcp_keepalive comment --- include/uv.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/uv.h b/include/uv.h index 4badd788..cebee681 100644 --- a/include/uv.h +++ b/include/uv.h @@ -608,12 +608,14 @@ UV_EXTERN int uv_tcp_open(uv_tcp_t* handle, uv_os_sock_t sock); /* Enable/disable Nagle's algorithm. */ UV_EXTERN int uv_tcp_nodelay(uv_tcp_t* handle, int enable); -/* Enable/disable TCP keep-alive. +/* + * Enable/disable TCP keep-alive. * - * `ms` is the initial delay in seconds, ignored when `enable` is zero. + * `delay` is the initial delay in seconds, ignored when `enable` is zero. */ -UV_EXTERN int uv_tcp_keepalive(uv_tcp_t* handle, int enable, - unsigned int delay); +UV_EXTERN int uv_tcp_keepalive(uv_tcp_t* handle, + int enable, + unsigned int delay); /* * This setting applies to Windows only.