Lines Matching refs:controlSock
49 int controlSock; member
74 if (netState->controlSock >= 0) { in adbStateFree()
75 shutdown(netState->controlSock, SHUT_RDWR); in adbStateFree()
76 close(netState->controlSock); in adbStateFree()
96 netState->controlSock = -1; in adbStateAlloc()
161 ret = recvmsg(netState->controlSock, &msg, 0); in receiveClientFd()
166 netState->controlSock, strerror(errno)); in receiveClientFd()
186 if (netState->controlSock < 0) in acceptConnection()
192 netState->controlSock = socket(PF_UNIX, SOCK_STREAM, 0); in acceptConnection()
193 if (netState->controlSock < 0) { in acceptConnection()
208 int ret = connect(netState->controlSock, in acceptConnection()
214 ret = send( netState->controlSock, buff, 4, 0 ); in acceptConnection()
284 int controlSock; in adbStateShutdown() local
296 controlSock = netState->controlSock; in adbStateShutdown()
297 if (controlSock >= 0) { in adbStateShutdown()
298 shutdown(controlSock, SHUT_RDWR); in adbStateShutdown()
299 netState->controlSock = -1; in adbStateShutdown()
484 fd = netState->controlSock; in processIncoming()
536 if (netState->controlSock >= 0 && in processIncoming()
537 FD_ISSET(netState->controlSock, &readfds)) in processIncoming()