Lines Matching refs:sock
178 SOCKET sock; in uv_tcp_init_ex() local
181 sock = socket(domain, SOCK_STREAM, 0); in uv_tcp_init_ex()
182 if (sock == INVALID_SOCKET) { in uv_tcp_init_ex()
188 err = uv__tcp_set_socket(handle->loop, handle, sock, domain, 0); in uv_tcp_init_ex()
190 closesocket(sock); in uv_tcp_init_ex()
302 SOCKET sock; in uv__tcp_try_bind() local
308 sock = socket(addr->sa_family, SOCK_STREAM, 0); in uv__tcp_try_bind()
309 if (sock == INVALID_SOCKET) { in uv__tcp_try_bind()
313 err = uv__tcp_set_socket(handle->loop, handle, sock, addr->sa_family, 0); in uv__tcp_try_bind()
315 closesocket(sock); in uv__tcp_try_bind()
1489 int uv_tcp_open(uv_tcp_t* handle, uv_os_sock_t sock) { in uv_tcp_open() argument
1498 if (getsockopt(sock, in uv_tcp_open()
1508 sock, in uv_tcp_open()