Searched refs:sock (Results 1 – 2 of 2) sorted by relevance
274 static bool isFdReadable(int sock)281 FD_SET(sock, &readfds);285 count = select(sock+1, &readfds, NULL, NULL, &tv);289 if (FD_ISSET(sock, &readfds)) /* make sure it's our fd */344 int sock; in acceptConnection() local353 sock = accept(netState->listenSock, &addr.addrPlain, &addrlen); in acceptConnection()354 if (sock < 0 && errno != EINTR) { in acceptConnection()363 } while (sock < 0); in acceptConnection()370 netState->clientSock = sock; in acceptConnection()
579 int sock = receiveClientFd(netState); in processIncoming() local580 if (sock >= 0) { in processIncoming()582 close(sock); in processIncoming()