Lines Matching refs:on
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()
179 on = (flags & UV_TCP_IPV6ONLY) != 0; 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()
469 int uv__tcp_keepalive(int fd, int on, unsigned int delay) { in uv__tcp_keepalive() argument
478 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on))) in uv__tcp_keepalive()
481 if (!on) in uv__tcp_keepalive()
580 int uv_tcp_nodelay(uv_tcp_t* handle, int on) { in uv_tcp_nodelay() argument
584 err = uv__tcp_nodelay(uv__stream_fd(handle), on); in uv_tcp_nodelay()
589 if (on) in uv_tcp_nodelay()
598 int uv_tcp_keepalive(uv_tcp_t* handle, int on, unsigned int delay) { in uv_tcp_keepalive() argument
602 err =uv__tcp_keepalive(uv__stream_fd(handle), on, delay); in uv_tcp_keepalive()
607 if (on) in uv_tcp_keepalive()