Lines Matching refs:socketFd
42 int socketFd = -1; in onDataAvailable() local
43 int error = processClient(client, &socketFd); in onDataAvailable()
44 if (socketFd >= 0) { in onDataAvailable()
45 close(socketFd); in onDataAvailable()
58 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { in processClient() argument
73 char cmsg[CMSG_SPACE(sizeof(*socketFd))]; in processClient()
102 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) { in processClient()
103 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd)); in processClient()
106 if (*socketFd < 0) { in processClient()
112 if (getsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen) == -1) { in processClient()
176 const int ret = getsockopt(*socketFd, SOL_SOCKET, SO_PROTOCOL, &socketProto, &intSize); in processClient()
251 if (setsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, in processClient()