Lines Matching refs:sockfd
65 int sockfd; in new_socket() local
68 sockfd = uv__socket(domain, SOCK_STREAM, 0); in new_socket()
69 if (sockfd < 0) in new_socket()
70 return sockfd; in new_socket()
72 err = uv__stream_open((uv_stream_t*) handle, sockfd, flags); in new_socket()
74 uv__close(sockfd); in new_socket()
79 return maybe_bind_socket(sockfd); in new_socket()
86 int sockfd; in maybe_new_socket() local
92 sockfd = uv__stream_fd(handle); in maybe_new_socket()
93 if (sockfd == -1) in maybe_new_socket()
102 err = maybe_bind_socket(sockfd); in maybe_new_socket()