Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp1096 android::base::unique_fd tcpFd; in handleQuery() local
1109 tcpFd.reset(accept4(tcp_socket_.get(), reinterpret_cast<sockaddr*>(&sa), &sa_len, in handleQuery()
1111 if (tcpFd.get() < 0) { in handleQuery()
1118 if (read(tcpFd.get(), &queryMessageLengthField, 2) != 2) { in handleQuery()
1125 ssize_t ret = read(tcpFd.get(), buffer + len, qlen - len); in handleQuery()
1162 if (write(tcpFd.get(), responseMessageLengthField, 2) != 2) { in handleQuery()
1166 if (write(tcpFd.get(), response, response_len) != in handleQuery()