Searched refs:socketFd (Results 1 - 6 of 6) sorted by relevance

/system/netd/include/
H A DNetdClient.h28 int getNetworkForSocket(unsigned* netId, int socketFd);
29 int setNetworkForSocket(unsigned netId, int socketFd);
36 int protectFromVpn(int socketFd);
38 int setNetworkForUser(uid_t uid, int socketFd);
/system/netd/client/
H A DNetdClient.cpp87 int socketFd = libcSocket(domain, type, protocol); local
88 if (socketFd == -1) {
93 if (int error = setNetworkForSocket(netId, socketFd)) {
94 return closeFdAndSetErrno(socketFd, error);
97 return socketFd;
119 int socketFd; local
121 socketFd = libcSocket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0);
123 socketFd = socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0);
125 if (socketFd < 0) {
128 int error = setNetworkForSocket(netId, socketFd);
166 getNetworkForSocket(unsigned* netId, int socketFd) argument
183 setNetworkForSocket(unsigned netId, int socketFd) argument
199 protectFromVpn(int socketFd) argument
207 setNetworkForUser(uid_t uid, int socketFd) argument
[all...]
/system/netd/server/
H A DFwmarkServer.cpp32 int socketFd = -1; local
33 int error = processClient(client, &socketFd);
34 if (socketFd >= 0) {
35 close(socketFd);
48 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { argument
62 char cmsg[CMSG_SPACE(sizeof(*socketFd))];
89 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) {
90 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd));
93 if (*socketFd <
[all...]
H A DFwmarkServer.h33 int processClient(SocketClient* client, int* socketFd);
/system/core/include/sysutils/
H A DSocketListener.h37 SocketListener(int socketFd, bool listen);
57 void init(const char *socketName, int socketFd, bool listen, bool useCmdNum);
/system/core/libsysutils/src/
H A DSocketListener.cpp39 SocketListener::SocketListener(int socketFd, bool listen) { argument
40 init(NULL, socketFd, listen, false);
47 void SocketListener::init(const char *socketName, int socketFd, bool listen, bool useCmdNum) { argument
50 mSock = socketFd;

Completed in 7236 milliseconds