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.cpp1066 android::base::unique_fd tcpFd; in handleQuery() local
1079 tcpFd.reset(accept4(tcp_socket_.get(), reinterpret_cast<sockaddr*>(&sa), &sa_len, in handleQuery()
1081 if (tcpFd.get() < 0) { in handleQuery()
1088 if (read(tcpFd.get(), &queryMessageLengthField, 2) != 2) { in handleQuery()
1095 ssize_t ret = read(tcpFd.get(), buffer + len, qlen - len); in handleQuery()
1132 if (write(tcpFd.get(), responseMessageLengthField, 2) != 2) { in handleQuery()
1136 if (write(tcpFd.get(), response, response_len) != in handleQuery()