Searched refs:listen_fds (Results 1 – 2 of 2) sorted by relevance
/external/libvncserver/libvncserver/ |
D | sockets.c | 415 fd_set listen_fds; in rfbProcessNewConnection() local 421 FD_ZERO(&listen_fds); in rfbProcessNewConnection() 423 FD_SET(rfbScreen->listenSock, &listen_fds); in rfbProcessNewConnection() 425 FD_SET(rfbScreen->listen6Sock, &listen_fds); in rfbProcessNewConnection() 426 if (select(rfbScreen->maxFd+1, &listen_fds, NULL, NULL, NULL) == -1) { in rfbProcessNewConnection() 430 if (rfbScreen->listenSock >= 0 && FD_ISSET(rfbScreen->listenSock, &listen_fds)) in rfbProcessNewConnection() 432 if (rfbScreen->listen6Sock >= 0 && FD_ISSET(rfbScreen->listen6Sock, &listen_fds)) in rfbProcessNewConnection()
|
D | main.c | 575 fd_set listen_fds; /* temp file descriptor list for select() */ in listenerRun() local 581 FD_ZERO(&listen_fds); in listenerRun() 583 FD_SET(screen->listenSock, &listen_fds); in listenerRun() 585 FD_SET(screen->listen6Sock, &listen_fds); in listenerRun() 587 if (select(screen->maxFd+1, &listen_fds, NULL, NULL, NULL) == -1) { in listenerRun() 594 if (FD_ISSET(screen->listenSock, &listen_fds)) in listenerRun() 596 else if (FD_ISSET(screen->listen6Sock, &listen_fds)) in listenerRun()
|