Lines Matching refs:sockfd
245 nsldapi_os_connect_with_to(LBER_SOCKET sockfd, struct sockaddr *saptr, argument
273 ioctlsocket(sockfd, FIONBIO, &nonblock);
275 flags = fcntl(sockfd, F_GETFL, 0);
276 fcntl(sockfd, F_SETFL, flags | O_NONBLOCK);
280 if ((n = connect(sockfd, saptr, salen)) < 0)
299 FD_SET(sockfd, &rset);
337 if ((n = select(sockfd +1, &rset, &wset, &eset,
343 if (FD_ISSET(sockfd, &wset) || FD_ISSET(sockfd, &rset)) {
345 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (char *)&error, &len)
352 if (FD_ISSET(sockfd, &eset)) {
368 if ((n = select(sockfd +1, &rset, &wset, NULL,
380 FD_SET(sockfd, &rset);
414 if (FD_ISSET(sockfd, &rset) || FD_ISSET(sockfd, &wset)) {
416 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (char *)&error, &len)
428 ioctlsocket(sockfd, FIONBIO, &block);
430 fcntl(sockfd, F_SETFL, flags);