Home
last modified time | relevance | path

Searched refs:listenSock (Results 1 – 8 of 8) sorted by relevance

/external/libvncserver/libvncclient/
Dlisten.c106 client->sock = AcceptTcpConnection(client->listenSock); in listenForIncomingConnections()
161 if (client->listenSock < 0) in listenForIncomingConnectionsNoFork()
163 client->listenSock = ListenAtTcpPortAndAddress(client->listenPort, client->listenAddress); in listenForIncomingConnectionsNoFork()
165 if (client->listenSock < 0) in listenForIncomingConnectionsNoFork()
192 if(client->listenSock >= 0) in listenForIncomingConnectionsNoFork()
193 FD_SET(client->listenSock, &fds); in listenForIncomingConnectionsNoFork()
198 r = select(max(client->listenSock, client->listen6Sock) +1, &fds, NULL, NULL, NULL); in listenForIncomingConnectionsNoFork()
200 r = select(max(client->listenSock, client->listen6Sock) +1, &fds, NULL, NULL, &to); in listenForIncomingConnectionsNoFork()
204 if (FD_ISSET(client->listenSock, &fds)) in listenForIncomingConnectionsNoFork()
205 client->sock = AcceptTcpConnection(client->listenSock); in listenForIncomingConnectionsNoFork()
[all …]
Dvncviewer.c228 client->listenSock = -1; in rfbGetClient()
409 if (client->listenSock >= 0) in rfbClientCleanup()
410 close(client->listenSock); in rfbClientCleanup()
Dsockets.c616 AcceptTcpConnection(int listenSock) in AcceptTcpConnection() argument
623 sock = accept(listenSock, (struct sockaddr *) &addr, &addrlen); in AcceptTcpConnection()
/external/libvncserver/libvncserver/
Dsockets.c165 if ((rfbScreen->listenSock = rfbListenOnTCPPort(i, iface)) >= 0) { in rfbInitSockets()
177 FD_SET(rfbScreen->listenSock, &(rfbScreen->allFds)); in rfbInitSockets()
178 rfbScreen->maxFd = rfbScreen->listenSock; in rfbInitSockets()
204 if ((rfbScreen->listenSock = rfbListenOnTCPPort(rfbScreen->port, iface)) < 0) { in rfbInitSockets()
210 FD_SET(rfbScreen->listenSock, &(rfbScreen->allFds)); in rfbInitSockets()
211 rfbScreen->maxFd = rfbScreen->listenSock; in rfbInitSockets()
256 if(rfbScreen->listenSock>-1) { in rfbShutdownSockets()
257 closesocket(rfbScreen->listenSock); in rfbShutdownSockets()
258 FD_CLR(rfbScreen->listenSock,&rfbScreen->allFds); in rfbShutdownSockets()
259 rfbScreen->listenSock=-1; in rfbShutdownSockets()
[all …]
Dmain.c582 if(screen->listenSock >= 0) in listenerRun()
583 FD_SET(screen->listenSock, &listen_fds); in listenerRun()
594 if (FD_ISSET(screen->listenSock, &listen_fds)) in listenerRun()
595 client_fd = accept(screen->listenSock, (struct sockaddr*)&peer, &len); in listenerRun()
840 screen->listenSock=-1; in rfbGetScreen()
/external/libvncserver/rfb/
Drfbclient.h344 int listenSock; member
557 extern int AcceptTcpConnection(int listenSock);
Drfb.h267 SOCKET listenSock; member
/external/libvncserver/
DChangeLog815 when listenSock/listen6Sock == -1