Searched refs:udp_socket_ (Results 1 – 2 of 2) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 560 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()
|
D | dns_responder.h | 201 int getUdpSocket() const { return udp_socket_.get(); } in getUdpSocket() 341 android::base::unique_fd udp_socket_; variable
|