Home
last modified time | relevance | path

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

/openthread-latest/src/core/net/
Ddnssd_server.hpp268 const otDnssdQuery *GetNextQuery(const otDnssdQuery *aQuery) const;
278 static DnsQueryType GetQueryTypeAndName(const otDnssdQuery *aQuery, Dns::Name::Buffer &aName);
395 void InitFrom(ProxyQuery &aQuery, const ProxyQueryInfo &aInfo);
471 void Resolve(ProxyQuery &aQuery, ProxyQueryInfo &aInfo);
472 void CancelAction(ProxyQuery &aQuery, ProxyQueryInfo &aInfo);
483 void Perform(ProxyAction aAction, ProxyQuery &aQuery, ProxyQueryInfo &aInfo);
484 …void ReadNameFor(ProxyAction aAction, ProxyQuery &aQuery, ProxyQueryInfo &aInfo, Name::Buffer &aNa…
486 bool QueryMatches(const ProxyQuery &aQuery,
492 const ProxyQuery &aQuery,
496 …void StartOrStopSrvResolver(Command aCommand, const ProxyQuery &aQuery, const ProxyQueryInfo &aInf…
[all …]
Ddns_client.hpp769 void ReadFrom(const Query &aQuery) { IgnoreError(aQuery.Read(0, *this)); } in ReadFrom()
788 … AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&aQuery);
789 void FreeQuery(Query &aQuery);
790 void UpdateQuery(Query &aQuery, const QueryInfo &aInfo) { aQuery.Write(0, aInfo); } in UpdateQuery() argument
791 Query &FindMainQuery(Query &aQuery);
792 Error SendQuery(Query &aQuery, QueryInfo &aInfo, bool aUpdateTimer);
793 void FinalizeQuery(Query &aQuery, Error aError);
795 …static void GetQueryTypeAndCallback(const Query &aQuery, QueryType &aType, Callback &aCallback, vo…
796 Error AppendNameFromQuery(const Query &aQuery, Message &aMessage);
800 … Error ParseResponse(const Message &aResponseMessage, Query *&aQuery, Error &aResponseError);
[all …]
Ddns_client.cpp1031 …lient::AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&aQuery) in AllocateQuery() argument
1035 aQuery = nullptr; in AllocateQuery()
1039 aQuery = Get<MessagePool>().Allocate(Message::kTypeOther); in AllocateQuery()
1040 VerifyOrExit(aQuery != nullptr, error = kErrorNoBufs); in AllocateQuery()
1042 SuccessOrExit(error = aQuery->Append(aInfo)); in AllocateQuery()
1046 SuccessOrExit(error = Name::AppendLabel(aLabel, *aQuery)); in AllocateQuery()
1049 SuccessOrExit(error = Name::AppendName(aName, *aQuery)); in AllocateQuery()
1052 FreeAndNullMessageOnError(aQuery, error); in AllocateQuery()
1056 Client::Query &Client::FindMainQuery(Query &aQuery) in FindMainQuery() argument
1060 info.ReadFrom(aQuery); in FindMainQuery()
[all …]
Ddnssd_server.cpp1031 void Server::ReadQueryName(const Message &aQuery, Name::Buffer &aName) in ReadQueryName() argument
1035 IgnoreError(Name::ReadName(aQuery, offset, aName)); in ReadQueryName()
1038 bool Server::QueryNameMatches(const Message &aQuery, const char *aName) in QueryNameMatches() argument
1042 return (Name::CompareName(aQuery, offset, aName) == kErrorNone); in QueryNameMatches()
1045 void Server::ReadQueryInstanceName(const ProxyQuery &aQuery, const ProxyQueryInfo &aInfo, Name::Buf… in ReadQueryInstanceName() argument
1049 IgnoreError(Name::ReadName(aQuery, offset, aName, sizeof(aName))); in ReadQueryInstanceName()
1052 void Server::ReadQueryInstanceName(const ProxyQuery &aQuery, in ReadQueryInstanceName() argument
1063 IgnoreError(Dns::Name::ReadLabel(aQuery, offset, aInstanceLabel, labelLength)); in ReadQueryInstanceName()
1064 IgnoreError(Dns::Name::ReadName(aQuery, offset, aServiceType)); in ReadQueryInstanceName()
1068 bool Server::QueryInstanceNameMatches(const ProxyQuery &aQuery, const ProxyQueryInfo &aInfo, const … in QueryInstanceNameMatches() argument
[all …]
Dsntp_client.cpp77 Error Client::Query(const otSntpQuery *aQuery, otSntpResponseHandler aHandler, void *aContext) in Query() argument
86 VerifyOrExit(aQuery->mMessageInfo != nullptr, error = kErrorInvalidArgs); in Query()
95 messageInfo = AsCoreTypePtr(aQuery->mMessageInfo); in Query()
212 void Client::FinalizeSntpTransaction(Message &aQuery, in FinalizeSntpTransaction() argument
217 DequeueMessage(aQuery); in FinalizeSntpTransaction()
Dsntp_client.hpp108 Error Query(const otSntpQuery *aQuery, ResponseHandler aHandler, void *aContext);
257 …void FinalizeSntpTransaction(Message &aQuery, const QueryMetadata &aQueryMetadata, uint64_t aTime,…
Dmdns.hpp1651 void PreparePtrQuestion(TxMessage &aQuery, TimeMilli aNow);
1705 void PrepareQueryQuestion(TxMessage &aQuery, uint16_t aRrType);
1744 void PrepareSrvQuestion(TxMessage &aQuery);
1782 void PrepareTxtQuestion(TxMessage &aQuery);
1828 void PrepareQueryQuestion(TxMessage &aQuery, uint16_t aRrType);
1862 void PrepareAaaaQuestion(TxMessage &aQuery);
1879 void PrepareAQuestion(TxMessage &aQuery);
Dmdns.cpp5321 void Core::BrowseCache::PreparePtrQuestion(TxMessage &aQuery, TimeMilli aNow) in PreparePtrQuestion() argument
5330 AppendServiceTypeOrSubTypeTo(aQuery, kQuestionSection); in PreparePtrQuestion()
5331 SuccessOrAssert(aQuery.SelectMessageFor(kQuestionSection).Append(question)); in PreparePtrQuestion()
5333 aQuery.IncrementRecordCount(kQuestionSection); in PreparePtrQuestion()
5342 AppendKnownAnswer(aQuery, ptrEntry, aNow); in PreparePtrQuestion()
5547 void Core::ServiceCache::PrepareQueryQuestion(TxMessage &aQuery, uint16_t aRrType) in PrepareQueryQuestion() argument
5549 Message &message = aQuery.SelectMessageFor(kQuestionSection); in PrepareQueryQuestion()
5555 AppendServiceNameTo(aQuery, kQuestionSection); in PrepareQueryQuestion()
5558 aQuery.IncrementRecordCount(kQuestionSection); in PrepareQueryQuestion()
5712 void Core::SrvCache::PrepareSrvQuestion(TxMessage &aQuery) in PrepareSrvQuestion() argument
[all …]
/openthread-latest/src/core/api/
Ddns_server_api.cpp69 const otDnssdQuery *otDnssdGetNextQuery(otInstance *aInstance, const otDnssdQuery *aQuery) in otDnssdGetNextQuery() argument
71 return AsCoreType(aInstance).Get<Dns::ServiceDiscovery::Server>().GetNextQuery(aQuery); in otDnssdGetNextQuery()
74 otDnssdQueryType otDnssdGetQueryTypeAndName(const otDnssdQuery *aQuery, char (*aNameOutput)[OT_DNS_… in otDnssdGetQueryTypeAndName() argument
76 AssertPointerIsNotNull(aQuery); in otDnssdGetQueryTypeAndName()
79 return MapEnum(Dns::ServiceDiscovery::Server::GetQueryTypeAndName(aQuery, *aNameOutput)); in otDnssdGetQueryTypeAndName()
Dsntp_api.cpp45 const otSntpQuery *aQuery, in otSntpClientQuery() argument
49 return AsCoreType(aInstance).Get<Sntp::Client>().Query(aQuery, aHandler, aContext); in otSntpClientQuery()
/openthread-latest/examples/platforms/simulation/
Ddns.c35 …DnsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in otPlatDnsStartUpstreamQuery() argument
39 OT_UNUSED_VARIABLE(aQuery); in otPlatDnsStartUpstreamQuery()
/openthread-latest/src/posix/platform/
Dresolver.cpp121 void Resolver::Query(otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in Query() argument
125 uint16_t length = otMessageGetLength(aQuery); in Query()
131 …VerifyOrExit(otMessageRead(aQuery, 0, &packet, sizeof(packet)) == length, error = OT_ERROR_NO_BUFS… in Query()
346 …DnsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in otPlatDnsStartUpstreamQuery() argument
350 gResolver.Query(aTxn, aQuery); in otPlatDnsStartUpstreamQuery()
Dresolver.hpp65 void Query(otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery);
/openthread-latest/include/openthread/
Ddnssd_server.h226 const otDnssdQuery *otDnssdGetNextQuery(otInstance *aInstance, const otDnssdQuery *aQuery);
236 otDnssdQueryType otDnssdGetQueryTypeAndName(const otDnssdQuery *aQuery, char (*aNameOutput)[OT_DNS_…
Dsntp.h93 const otSntpQuery *aQuery,
/openthread-latest/include/openthread/platform/
Ddns.h72 …nsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery);
/openthread-latest/tests/unit/
Dtest_platform.cpp703 …DnsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in otPlatDnsStartUpstreamQuery() argument
707 OT_UNUSED_VARIABLE(aQuery); in otPlatDnsStartUpstreamQuery()