Searched refs:mWriteSock (Results 1 – 2 of 2) sorted by relevance
63 SockDiag() : mSock(-1), mWriteSock(-1), mSocketsDestroyed(0) {} in SockDiag()91 int mWriteSock; variable97 bool hasSocks() { return mSock != -1 && mWriteSock != -1; } in hasSocks()98 void closeSocks() { close(mSock); close(mWriteSock); mSock = mWriteSock = -1; } in closeSocks()
79 mWriteSock = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_INET_DIAG); in open()87 (connect(mWriteSock, reinterpret_cast<sockaddr *>(&nl), sizeof(nl)) == -1)) { in open()287 if (write(mWriteSock, &request, sizeof(request)) < (ssize_t) sizeof(request)) { in sockDestroy()291 int ret = checkError(mWriteSock); in sockDestroy()