Lines Matching defs:socket
109 afd_poll_info->Handles[0].Handle = (HANDLE) handle->socket;
252 /* Check if the protocol uses an msafd socket. */
257 /* If we didn't (try) to create a peer socket yet, try to make one. Don't try
258 * again if the peer socket creation failed earlier for the same protocol. */
282 rfds.fd_array[0] = handle->socket;
289 wfds.fd_array[0] = handle->socket;
291 efds.fd_array[0] = handle->socket;
298 * user closed the socket, we will at least not hang indefinitely. */
315 assert(rfds.fd_array[0] == handle->socket);
321 assert(wfds.fd_array[0] == handle->socket);
325 assert(efds.fd_array[0] == handle->socket);
416 uv_os_sock_t socket) {
423 /* Set the socket to nonblocking mode */
424 if (ioctlsocket(socket, FIONBIO, &yes) == SOCKET_ERROR)
427 /* Try to obtain a base handle for the socket. This increases this chances that
434 if (WSAIoctl(socket,
444 socket = base_socket;
448 handle->socket = socket;
451 /* Obtain protocol information about the socket. */
453 if (getsockopt(socket,
461 /* Get the peer socket that is needed to enable fast poll. If the returned
559 afd_poll_info.Handles[0].Handle = (HANDLE) handle->socket;
563 result = uv__msafd_poll(handle->socket,