Home
last modified time | relevance | path

Searched refs:event_fd_ (Results 1 – 4 of 4) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp158 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()
Ddns_responder.cpp586 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()
Ddns_tls_frontend.h90 android::base::unique_fd event_fd_; variable
Ddns_responder.h346 android::base::unique_fd event_fd_; variable