Home
last modified time | relevance | path

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

/system/netd/resolv/
DDnsTlsTransport.cpp33 std::future<DnsTlsTransport::Result> DnsTlsTransport::query(const netdutils::Slice query) { in query()
53 bool DnsTlsTransport::sendQuery(const DnsTlsQueryMap::Query q) { in sendQuery()
62 void DnsTlsTransport::doConnect() { in doConnect()
82 void DnsTlsTransport::onResponse(std::vector<uint8_t> response) { in onResponse()
86 void DnsTlsTransport::onClosed() { in onClosed()
103 mReconnectThread.reset(new std::thread(&DnsTlsTransport::doReconnect, this)); in onClosed()
106 void DnsTlsTransport::doReconnect() { in doReconnect()
121 DnsTlsTransport::~DnsTlsTransport() { in ~DnsTlsTransport()
146 bool DnsTlsTransport::validate(const DnsTlsServer& server, unsigned netid, uint32_t mark) { in validate()
180 DnsTlsTransport transport(server, mark, &factory); in validate()
DDnsTlsDispatcher.cpp85 DnsTlsTransport::Response DnsTlsDispatcher::query( in query()
92 DnsTlsTransport::Response code = DnsTlsTransport::Response::internal_error; in query()
98 case DnsTlsTransport::Response::success: in query()
99 case DnsTlsTransport::Response::limit_error: in query()
104 case DnsTlsTransport::Response::network_error: in query()
105 case DnsTlsTransport::Response::internal_error: in query()
115 DnsTlsTransport::Response DnsTlsDispatcher::query(const DnsTlsServer& server, unsigned mark, in query()
136 DnsTlsTransport::Response code = result.code; in query()
137 if (code == DnsTlsTransport::Response::success) { in query()
140 code = DnsTlsTransport::Response::limit_error; in query()
Ddns_tls_test.cpp152 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
155 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F()
185 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
191 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F()
203 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
204 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F()
213 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F()
269 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
270 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F()
278 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F()
[all …]
DDnsTlsTransport.h42 class DnsTlsTransport : public IDnsTlsSocketObserver {
44 DnsTlsTransport(const DnsTlsServer& server, unsigned mark, in DnsTlsTransport() function
47 ~DnsTlsTransport();
DDnsTlsDispatcher.h51 DnsTlsTransport::Response query(const std::list<DnsTlsServer>& tlsServers, unsigned mark,
58 DnsTlsTransport::Response query(const DnsTlsServer& server, unsigned mark,
77 DnsTlsTransport transport;
DREADME.md7 * `DnsTlsTransport`
14 `DnsTlsTransport` for each server (represented by a `DnsTlsServer` struct) and
16 `std::future` returned by `DnsTlsTransport` that represents the response.
18 `DnsTlsTransport` sends each query over a `DnsTlsSocket`, opening a
22 responses to `DnsTlsTransport`.
24 `DnsTlsQueryMap` and `DnsTlsSessionCache` are helper classes owned by `DnsTlsTransport`.
29 responses to `DnsTlsTransport` (through the `IDnsTlsObserver` interface). It doesn't
85 If there are any pending queries, `DnsTlsTransport` will retry them.
87 `DnsTlsQueryMap` imposes a retry limit of 3. `DnsTlsTransport` will retry the query up
93 `DnsTlsDispatcher` maintains a 5-minute timeout. Any `DnsTlsTransport` that has had no
[all …]
Dres_send.cpp1269 case DnsTlsTransport::Response::success: in res_tls_send()
1272 case DnsTlsTransport::Response::network_error: in res_tls_send()
1274 case DnsTlsTransport::Response::internal_error: in res_tls_send()
1285 case DnsTlsTransport::Response::success: in res_tls_send()
1288 case DnsTlsTransport::Response::network_error: in res_tls_send()
DAndroid.bp68 "DnsTlsTransport.cpp",
DPrivateDnsConfiguration.cpp207 const bool success = DnsTlsTransport::validate(server, netId, mark); in validatePrivateDnsProvider()