Searched refs:udp_socket_ (Results 1 – 2 of 2) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 590 return (udp_socket_.ok()) && (tcp_socket_.ok()); in running() 600 if (udp_socket_ = createListeningSocket(SOCK_DGRAM); udp_socket_.get() < 0) { in startServer() 630 if (!addFd(udp_socket_.get(), EPOLLIN)) { in startServer() 668 udp_socket_.reset(); in stopServer() 719 } else if (fd == udp_socket_.get() && (events & (EPOLLIN | EPOLLERR))) { in requestHandler() 1100 len = recvfrom(udp_socket_.get(), buffer, sizeof(buffer), 0, (sockaddr*)&sa, in handleQuery() 1150 len = sendto(udp_socket_.get(), response, response_len, 0, in handleQuery()
|
D | dns_responder.h | 205 int getUdpSocket() const { return udp_socket_.get(); } in getUdpSocket() 345 android::base::unique_fd udp_socket_; variable
|