Lines Matching refs:file_descriptor_
38 NetlinkSocket::NetlinkSocket() : sequence_number_(0), file_descriptor_(-1) {} in NetlinkSocket()
41 if (sockets_ && (file_descriptor_ >= 0)) { in ~NetlinkSocket()
42 sockets_->Close(file_descriptor_); in ~NetlinkSocket()
58 file_descriptor_ = sockets_->Socket(PF_NETLINK, SOCK_DGRAM, NETLINK_GENERIC); in Init()
59 if (file_descriptor_ < 0) { in Init()
64 if (sockets_->SetReceiveBuffer(file_descriptor_, kReceiveBufferSize)) { in Init()
72 if (sockets_->Bind(file_descriptor_, in Init()
75 sockets_->Close(file_descriptor_); in Init()
76 file_descriptor_ = -1; in Init()
96 file_descriptor_, in RecvMessage()
110 file_descriptor_, in RecvMessage()
140 int err = setsockopt(file_descriptor_, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, in SubscribeToEvents()