Lines Matching refs:socket
58 static int uv__udp_set_socket(uv_loop_t* loop, uv_udp_t* handle, SOCKET socket, in uv__udp_set_socket() argument
64 if (handle->socket != INVALID_SOCKET) in uv__udp_set_socket()
68 if (ioctlsocket(socket, FIONBIO, &yes) == SOCKET_ERROR) { in uv__udp_set_socket()
73 if (!SetHandleInformation((HANDLE)socket, HANDLE_FLAG_INHERIT, 0)) { in uv__udp_set_socket()
79 if (CreateIoCompletionPort((HANDLE)socket, in uv__udp_set_socket()
81 (ULONG_PTR)socket, in uv__udp_set_socket()
93 socket, SOL_SOCKET, SO_PROTOCOL_INFOW, (char*) &info, &opt_len) == in uv__udp_set_socket()
100 (HANDLE) socket, in uv__udp_set_socket()
111 handle->socket = socket; in uv__udp_set_socket()
128 handle->socket = INVALID_SOCKET; in uv__udp_init_ex()
146 sock = socket(domain, SOCK_DGRAM, 0); in uv__udp_init_ex()
167 closesocket(handle->socket); in uv__udp_close()
168 handle->socket = INVALID_SOCKET; in uv__udp_close()
214 if (handle->socket == INVALID_SOCKET) { in uv__udp_maybe_bind()
215 SOCKET sock = socket(addr->sa_family, SOCK_DGRAM, 0); in uv__udp_maybe_bind()
230 if (setsockopt(handle->socket, in uv__udp_maybe_bind()
250 setsockopt(handle->socket, in uv__udp_maybe_bind()
257 r = bind(handle->socket, addr, addrlen); in uv__udp_maybe_bind()
286 result = handle->func_wsarecv(handle->socket, in uv__udp_queue_recv()
369 result = WSASendTo(handle->socket, in uv__send()
470 if (WSARecvFrom(handle->socket, in uv__process_udp_recv_req()
592 if (setsockopt(handle->socket, in uv__udp_set_membership4()
647 if (setsockopt(handle->socket, in uv__udp_set_membership6()
699 if (setsockopt(handle->socket, in uv__udp_set_source_membership4()
756 if (setsockopt(handle->socket, in uv__udp_set_source_membership6()
853 if (handle->socket == INVALID_SOCKET) in uv_udp_set_multicast_interface()
857 if (setsockopt(handle->socket, in uv_udp_set_multicast_interface()
865 if (setsockopt(handle->socket, in uv_udp_set_multicast_interface()
884 if (handle->socket == INVALID_SOCKET) in uv_udp_set_broadcast()
887 if (setsockopt(handle->socket, in uv_udp_set_broadcast()
951 if (handle->socket == INVALID_SOCKET) \
956 if (setsockopt(handle->socket, \
965 if (setsockopt(handle->socket, \
1035 err = connect(handle->socket, addr, addrlen); in uv__udp_connect()
1051 err = connect(handle->socket, (struct sockaddr*) &addr, sizeof(addr)); in uv__udp_disconnect()
1129 err = WSASendTo(handle->socket, in uv__udp_try_send()