Home
last modified time | relevance | path

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

/openthread-3.4.0/src/core/net/
Ddns_client.hpp811 void ReadFrom(const Query &aQuery) { IgnoreError(aQuery.Read(0, *this)); } in ReadFrom()
830 … AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&aQuery);
831 void FreeQuery(Query &aQuery);
832 void UpdateQuery(Query &aQuery, const QueryInfo &aInfo) { aQuery.Write(0, aInfo); } in UpdateQuery() argument
833 Query &FindMainQuery(Query &aQuery);
834 Error SendQuery(Query &aQuery, QueryInfo &aInfo, bool aUpdateTimer);
835 void FinalizeQuery(Query &aQuery, Error aError);
837 …static void GetQueryTypeAndCallback(const Query &aQuery, QueryType &aType, Callback &aCallback, vo…
838 Error AppendNameFromQuery(const Query &aQuery, Message &aMessage);
842 … Error ParseResponse(const Message &aResponseMessage, Query *&aQuery, Error &aResponseError);
[all …]
Ddns_client.cpp1028 …lient::AllocateQuery(const QueryInfo &aInfo, const char *aLabel, const char *aName, Query *&aQuery) in AllocateQuery() argument
1032 aQuery = nullptr; in AllocateQuery()
1036 aQuery = Get<MessagePool>().Allocate(Message::kTypeOther); in AllocateQuery()
1037 VerifyOrExit(aQuery != nullptr, error = kErrorNoBufs); in AllocateQuery()
1039 SuccessOrExit(error = aQuery->Append(aInfo)); in AllocateQuery()
1043 SuccessOrExit(error = Name::AppendLabel(aLabel, *aQuery)); in AllocateQuery()
1046 SuccessOrExit(error = Name::AppendName(aName, *aQuery)); in AllocateQuery()
1049 FreeAndNullMessageOnError(aQuery, error); in AllocateQuery()
1053 Client::Query &Client::FindMainQuery(Query &aQuery) in FindMainQuery() argument
1057 info.ReadFrom(aQuery); in FindMainQuery()
[all …]
Ddnssd_server.cpp994 bool Server::CanAnswerQuery(const QueryTransaction &aQuery, in CanAnswerQuery() argument
1002 sdType = GetQueryTypeAndName(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), name); in CanAnswerQuery()
1019 bool Server::CanAnswerQuery(const Server::QueryTransaction &aQuery, const char *aHostFullName) in CanAnswerQuery() argument
1024 sdType = GetQueryTypeAndName(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), name); in CanAnswerQuery()
1028 void Server::AnswerQuery(QueryTransaction &aQuery, in AnswerQuery() argument
1032 Header &responseHeader = aQuery.GetResponseHeader(); in AnswerQuery()
1033 Message &responseMessage = aQuery.GetResponseMessage(); in AnswerQuery()
1035 NameCompressInfo &compressInfo = aQuery.GetNameCompressInfo(); in AnswerQuery()
1037 if (HasQuestion(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), aServiceFullName, in AnswerQuery()
1052 … if (HasQuestion(aQuery.GetResponseHeader(), aQuery.GetResponseMessage(), aInstanceInfo.mFullName, in AnswerQuery()
[all …]
Ddnssd_server.hpp244 const otDnssdQuery *GetNextQuery(const otDnssdQuery *aQuery) const;
255 …static DnsQueryType GetQueryTypeAndName(const otDnssdQuery *aQuery, char (&aName)[Name::kMaxNameSi…
517 static bool CanAnswerQuery(const QueryTransaction &aQuery,
520 void AnswerQuery(QueryTransaction &aQuery,
523 …static bool CanAnswerQuery(const Server::QueryTransaction &aQuery, const char *aHostFullName…
524 …void AnswerQuery(QueryTransaction &aQuery, const char *aHostFullName, const otDnssdHostInfo &aHost…
525 void FinalizeQuery(QueryTransaction &aQuery, Header::Response aResponseCode);
Dsntp_client.cpp127 Error Client::Query(const otSntpQuery *aQuery, otSntpResponseHandler aHandler, void *aContext) in Query() argument
136 VerifyOrExit(aQuery->mMessageInfo != nullptr, error = kErrorInvalidArgs); in Query()
143 messageInfo = AsCoreTypePtr(aQuery->mMessageInfo); in Query()
259 void Client::FinalizeSntpTransaction(Message &aQuery, in FinalizeSntpTransaction() argument
264 DequeueMessage(aQuery); in FinalizeSntpTransaction()
Dsntp_client.hpp510 Error Query(const otSntpQuery *aQuery, otSntpResponseHandler aHandler, void *aContext);
525 …void FinalizeSntpTransaction(Message &aQuery, const QueryMetadata &aQueryMetadata, uint64_t aTime,…
/openthread-3.4.0/src/core/api/
Ddns_server_api.cpp71 const otDnssdQuery *otDnssdGetNextQuery(otInstance *aInstance, const otDnssdQuery *aQuery) in otDnssdGetNextQuery() argument
73 return AsCoreType(aInstance).Get<Dns::ServiceDiscovery::Server>().GetNextQuery(aQuery); in otDnssdGetNextQuery()
76 otDnssdQueryType otDnssdGetQueryTypeAndName(const otDnssdQuery *aQuery, char (*aNameOutput)[OT_DNS_… in otDnssdGetQueryTypeAndName() argument
78 AssertPointerIsNotNull(aQuery); in otDnssdGetQueryTypeAndName()
81 return MapEnum(Dns::ServiceDiscovery::Server::GetQueryTypeAndName(aQuery, *aNameOutput)); in otDnssdGetQueryTypeAndName()
Dsntp_api.cpp46 const otSntpQuery *aQuery, in otSntpClientQuery() argument
50 return AsCoreType(aInstance).Get<Sntp::Client>().Query(aQuery, aHandler, aContext); in otSntpClientQuery()
/openthread-3.4.0/src/posix/platform/
Dresolver.cpp114 void Resolver::Query(otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in Query() argument
118 uint16_t length = otMessageGetLength(aQuery); in Query()
124 …VerifyOrExit(otMessageRead(aQuery, 0, &packet, sizeof(packet)) == length, error = OT_ERROR_NO_BUFS… in Query()
295 …DnsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in otPlatDnsStartUpstreamQuery() argument
299 gResolver.Query(aTxn, aQuery); in otPlatDnsStartUpstreamQuery()
Dresolver.hpp62 void Query(otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery);
/openthread-3.4.0/include/openthread/
Ddnssd_server.h225 const otDnssdQuery *otDnssdGetNextQuery(otInstance *aInstance, const otDnssdQuery *aQuery);
236 otDnssdQueryType otDnssdGetQueryTypeAndName(const otDnssdQuery *aQuery, char (*aNameOutput)[OT_DNS_…
Dsntp.h97 const otSntpQuery *aQuery,
/openthread-3.4.0/include/openthread/platform/
Ddns.h76 …nsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery);
/openthread-3.4.0/tests/unit/
Dtest_platform.cpp613 …DnsStartUpstreamQuery(otInstance *aInstance, otPlatDnsUpstreamQuery *aTxn, const otMessage *aQuery) in otPlatDnsStartUpstreamQuery() argument
617 OT_UNUSED_VARIABLE(aQuery); in otPlatDnsStartUpstreamQuery()