Searched refs:mWriteSock (Results 1 – 2 of 2) sorted by relevance
46 SockDiag() : mSock(-1), mWriteSock(-1), mSocketsDestroyed(0) {} in SockDiag()60 int mWriteSock; variable65 bool hasSocks() { return mSock != -1 && mWriteSock != -1; } in hasSocks()66 void closeSocks() { close(mSock); close(mWriteSock); mSock = mWriteSock = -1; } in closeSocks()
78 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()