Home
last modified time | relevance | path

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

/system/netd/server/
DSockDiag.h46 SockDiag() : mSock(-1), mWriteSock(-1), mSocketsDestroyed(0) {} in SockDiag()
60 int mWriteSock; variable
65 bool hasSocks() { return mSock != -1 && mWriteSock != -1; } in hasSocks()
66 void closeSocks() { close(mSock); close(mWriteSock); mSock = mWriteSock = -1; } in closeSocks()
DSockDiag.cpp78 mWriteSock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_INET_DIAG); in open()
86 (connect(mWriteSock, reinterpret_cast<sockaddr *>(&nl), sizeof(nl)) == -1)) { in open()
258 if (write(mWriteSock, &request, sizeof(request)) < (ssize_t) sizeof(request)) { in sockDestroy()
262 int ret = checkError(mWriteSock); in sockDestroy()