Lines Matching defs:socket
107 afd_poll_info->Handles[0].Handle = (HANDLE) handle->socket;
250 /* Check if the protocol uses an msafd socket. */
255 /* If we didn't (try) to create a peer socket yet, try to make one. Don't try
256 * again if the peer socket creation failed earlier for the same protocol. */
280 rfds.fd_array[0] = handle->socket;
287 wfds.fd_array[0] = handle->socket;
289 efds.fd_array[0] = handle->socket;
296 * user closed the socket, we will at least not hang indefinitely. */
313 assert(rfds.fd_array[0] == handle->socket);
319 assert(wfds.fd_array[0] == handle->socket);
323 assert(efds.fd_array[0] == handle->socket);
414 uv_os_sock_t socket) {
421 /* Set the socket to nonblocking mode */
422 if (ioctlsocket(socket, FIONBIO, &yes) == SOCKET_ERROR)
425 /* Try to obtain a base handle for the socket. This increases this chances that
433 if (WSAIoctl(socket,
443 socket = base_socket;
447 handle->socket = socket;
450 /* Obtain protocol information about the socket. */
452 if (getsockopt(socket,
460 /* Get the peer socket that is needed to enable fast poll. If the returned
558 afd_poll_info.Handles[0].Handle = (HANDLE) handle->socket;
562 result = uv__msafd_poll(handle->socket,