Searched refs:event_fd_ (Results 1 – 4 of 4) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 158 event_fd_.reset(eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC)); in startServer() 159 if (event_fd_.get() == -1) { in startServer() 160 PLOG(INFO) << "failed to create eventfd " << event_fd_.get(); in startServer() 175 pollfd fds[2] = {{.fd = event_fd_.get(), .events = POLLIN}, in requestHandler() 294 event_fd_.reset(); in stopServer() 323 if (const ssize_t rt = write(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in sendToEventFd() 332 if (const ssize_t rt = read(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in handleEventFd()
|
D | dns_responder.cpp | 586 event_fd_.reset(eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC)); in startServer() 587 if (event_fd_.get() == -1) { in startServer() 612 if (!addFd(event_fd_.get(), EPOLLIN)) { in startServer() 637 event_fd_.reset(); in stopServer() 686 if (fd == event_fd_.get() && (events & (EPOLLIN | EPOLLERR))) { in requestHandler() 1168 if (const ssize_t rt = write(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in sendToEventFd() 1177 if (const ssize_t rt = read(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in handleEventFd()
|
D | dns_tls_frontend.h | 90 android::base::unique_fd event_fd_; variable
|
D | dns_responder.h | 346 android::base::unique_fd event_fd_; variable
|