Lines Matching refs:clientSock
50 int clientSock;
71 if (netState->clientSock >= 0) {
72 shutdown(netState->clientSock, SHUT_RDWR);
73 close(netState->clientSock);
98 netState->clientSock = -1;
270 netState->clientSock = receiveClientFd(netState);
274 if (netState->clientSock < 0) {
281 LOGV("received file descriptor %d from ADB\n", netState->clientSock);
307 if (netState->clientSock < 0)
312 close(netState->clientSock);
313 netState->clientSock = -1;
325 int clientSock;
332 clientSock = netState->clientSock;
333 if (clientSock >= 0) {
334 shutdown(clientSock, SHUT_RDWR);
335 netState->clientSock = -1;
372 state->netState->clientSock >= 0);
468 cc = write(netState->clientSock, expandBufGetBuffer(pReply),
510 assert(netState->clientSock >= 0);
530 fd = netState->clientSock;
587 * on netState->clientSock will fail and throw us out
592 if (netState->clientSock >= 0 &&
593 FD_ISSET(netState->clientSock, &readfds))
595 readCount = read(netState->clientSock,
637 cc = write(netState->clientSock, netState->inputBuffer,
674 if (netState->clientSock < 0) {
686 cc = write(netState->clientSock, expandBufGetBuffer(pReq),
710 if (netState->clientSock < 0) {
727 actual = writev(netState->clientSock, iov, iovcnt);