Home
last modified time | relevance | path

Searched refs:udp_socket_ (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp560 return (udp_socket_.ok()) && (tcp_socket_.ok()); in running()
570 if (udp_socket_ = createListeningSocket(SOCK_DGRAM); udp_socket_.get() < 0) { in startServer()
600 if (!addFd(udp_socket_.get(), EPOLLIN)) { in startServer()
638 udp_socket_.reset(); in stopServer()
689 } else if (fd == udp_socket_.get() && (events & (EPOLLIN | EPOLLERR))) { in requestHandler()
1070 len = recvfrom(udp_socket_.get(), buffer, sizeof(buffer), 0, (sockaddr*)&sa, in handleQuery()
1120 len = sendto(udp_socket_.get(), response, response_len, 0, in handleQuery()
Ddns_responder.h328 android::base::unique_fd udp_socket_; variable