Lines Matching refs:flags
64 static int new_socket(uv_tcp_t* handle, int domain, unsigned int flags) { in new_socket() argument
72 err = uv__stream_open((uv_stream_t*) handle, sockfd, flags); in new_socket()
78 if (flags & UV_HANDLE_BOUND) in new_socket()
85 static int maybe_new_socket(uv_tcp_t* handle, int domain, unsigned int flags) { in maybe_new_socket() argument
94 return new_socket(handle, domain, flags); in maybe_new_socket()
96 if (!(flags & UV_HANDLE_BOUND)) in maybe_new_socket()
99 if (handle->flags & UV_HANDLE_BOUND) in maybe_new_socket()
108 handle->flags |= flags; in maybe_new_socket()
113 int uv_tcp_init_ex(uv_loop_t* loop, uv_tcp_t* tcp, unsigned int flags) { in uv_tcp_init_ex() argument
118 domain = flags & 0xFF; in uv_tcp_init_ex()
122 if (flags & ~0xFF) in uv_tcp_init_ex()
154 unsigned int flags) { in uv__tcp_bind() argument
159 if ((flags & UV_TCP_IPV6ONLY) && addr->sa_family != AF_INET6) in uv__tcp_bind()
170 if (flags & UV_TCP_REUSEPORT) { in uv__tcp_bind()
179 on = (flags & UV_TCP_IPV6ONLY) != 0; in uv__tcp_bind()
206 tcp->flags |= UV_HANDLE_BOUND; in uv__tcp_bind()
208 tcp->flags |= UV_HANDLE_IPV6; in uv__tcp_bind()
422 unsigned int flags; in uv__tcp_listen() local
428 flags = 0; in uv__tcp_listen()
434 flags |= UV_HANDLE_BOUND; in uv__tcp_listen()
436 err = maybe_new_socket(tcp, AF_INET, flags); in uv__tcp_listen()
444 tcp->flags |= UV_HANDLE_BOUND; in uv__tcp_listen()
590 handle->flags |= UV_HANDLE_TCP_NODELAY; in uv_tcp_nodelay()
592 handle->flags &= ~UV_HANDLE_TCP_NODELAY; in uv_tcp_nodelay()
608 handle->flags |= UV_HANDLE_TCP_KEEPALIVE; in uv_tcp_keepalive()
610 handle->flags &= ~UV_HANDLE_TCP_KEEPALIVE; in uv_tcp_keepalive()
634 int flags; in uv_socketpair() local
636 flags = type | SOCK_CLOEXEC; in uv_socketpair()
638 flags |= SOCK_NONBLOCK; in uv_socketpair()
640 if (socketpair(AF_UNIX, flags, protocol, temp)) in uv_socketpair()
643 if (flags & UV_FS_O_NONBLOCK) { in uv_socketpair()