H A D | tcp.c | 156 int on; in uv__tcp_bind() local 166 on = 1; in uv__tcp_bind() 167 if (setsockopt(tcp->io_watcher.fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) in uv__tcp_bind() 183 &on, in uv__tcp_bind() 184 sizeof on) == -1) { in uv__tcp_bind() 454 int uv__tcp_nodelay(int fd, int on) { in uv__tcp_nodelay() argument 455 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on))) in uv__tcp_nodelay() 478 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on))) in uv__tcp_keepalive() 481 if (!on) in uv__tcp_keepalive() 589 if (on) in uv_tcp_nodelay() [all …]
|