Searched refs:DnsTlsTransport (Results 1 – 9 of 9) sorted by relevance
/packages/modules/DnsResolver/tests/ |
D | resolv_tls_unit_test.cpp | 152 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() 155 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F() 187 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() 190 std::future<DnsTlsTransport::Result> f = transport.query(makeSlice(QUERY)); in TEST_F() 192 DnsTlsTransport::Result r = f.get(); in TEST_F() 193 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F() 206 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() 207 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F() 216 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F() 277 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() [all …]
|
/packages/modules/DnsResolver/ |
D | DnsTlsDispatcher.cpp | 108 DnsTlsTransport::Response DnsTlsDispatcher::query(const std::list<DnsTlsServer>& tlsServers, in query() 116 DnsTlsTransport::Response code = DnsTlsTransport::Response::internal_error; in query() 137 case DnsTlsTransport::Response::success: in query() 142 case DnsTlsTransport::Response::limit_error: in query() 148 case DnsTlsTransport::Response::network_error: in query() 153 case DnsTlsTransport::Response::internal_error: in query() 164 DnsTlsTransport::Response DnsTlsDispatcher::query(const DnsTlsServer& server, unsigned netId, in query() 188 DnsTlsTransport::Response code = result.code; in query() 189 if (code == DnsTlsTransport::Response::success) { in query() 192 code = DnsTlsTransport::Response::limit_error; in query() [all …]
|
D | DnsTlsTransport.cpp | 153 std::future<DnsTlsTransport::Result> DnsTlsTransport::query(const netdutils::Slice query) { in query() 173 int DnsTlsTransport::getConnectCounter() const { in getConnectCounter() 178 bool DnsTlsTransport::sendQuery(const DnsTlsQueryMap::Query& q) { in sendQuery() 187 void DnsTlsTransport::doConnect() { in doConnect() 213 void DnsTlsTransport::onResponse(std::vector<uint8_t> response) { in onResponse() 217 void DnsTlsTransport::onClosed() { in onClosed() 234 mReconnectThread.reset(new std::thread(&DnsTlsTransport::doReconnect, this)); in onClosed() 237 void DnsTlsTransport::doReconnect() { in doReconnect() 253 DnsTlsTransport::~DnsTlsTransport() { in ~DnsTlsTransport() 278 bool DnsTlsTransport::validate(const DnsTlsServer& server, uint32_t mark) { in validate() [all …]
|
D | README-DoT.md | 7 * `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 …]
|
D | DnsTlsDispatcher.h | 53 DnsTlsTransport::Response query(const std::list<DnsTlsServer>& tlsServers, 61 DnsTlsTransport::Response query(const DnsTlsServer& server, unsigned netId, unsigned mark, 95 DnsTlsTransport transport; 110 bool checkRevalidationNecessary(DnsTlsTransport::Response code) REQUIRES(sLock); 158 DnsTlsTransport::Result queryInternal(Transport& transport, const netdutils::Slice query)
|
D | DnsTlsTransport.h | 42 class DnsTlsTransport : public IDnsTlsSocketObserver { 44 DnsTlsTransport(const DnsTlsServer& server, unsigned mark, in DnsTlsTransport() function 47 ~DnsTlsTransport();
|
D | res_send.cpp | 126 using android::net::DnsTlsTransport; 1265 case DnsTlsTransport::Response::success: in res_tls_send() 1268 case DnsTlsTransport::Response::network_error: in res_tls_send() 1270 case DnsTlsTransport::Response::internal_error: in res_tls_send() 1281 case DnsTlsTransport::Response::success: in res_tls_send() 1284 case DnsTlsTransport::Response::network_error: in res_tls_send()
|
D | PrivateDnsConfiguration.cpp | 218 const bool success = DnsTlsTransport::validate(server, server.validationMark()); in startValidation()
|
D | Android.bp | 183 "DnsTlsTransport.cpp",
|