Home
last modified time | relevance | path

Searched refs:mWriteSock (Results 1 – 2 of 2) sorted by relevance

/system/netd/server/
DSockDiag.h62 SockDiag() : mSock(-1), mWriteSock(-1), mSocketsDestroyed(0) {} in SockDiag()
90 int mWriteSock; variable
96 bool hasSocks() { return mSock != -1 && mWriteSock != -1; } in hasSocks()
97 void closeSocks() { close(mSock); close(mWriteSock); mSock = mWriteSock = -1; } in closeSocks()
DSockDiag.cpp94 mWriteSock = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_INET_DIAG); in open()
102 (connect(mWriteSock, reinterpret_cast<sockaddr *>(&nl), sizeof(nl)) == -1)) { in open()
300 if (write(mWriteSock, &request, sizeof(request)) < (ssize_t) sizeof(request)) { in sockDestroy()
304 int ret = checkError(mWriteSock); in sockDestroy()