Home
last modified time | relevance | path

Searched refs:aHostName (Results 1 – 19 of 19) sorted by relevance

/external/ot-br-posix/src/mdns/
Dmdns.hpp142 std::function<void(const std::string &aHostName, const DiscoveredHostInfo &aHostInfo)>;
203 void PublishService(const std::string &aHostName,
287 virtual void SubscribeHost(const std::string &aHostName) = 0;
297 virtual void UnsubscribeHost(const std::string &aHostName) = 0;
424 ServiceRegistration(std::string aHostName, in ServiceRegistration() argument
433 , mHostName(std::move(aHostName)) in ServiceRegistration()
448 bool IsOutdated(const std::string &aHostName,
492 virtual void PublishServiceImpl(const std::string &aHostName,
505 virtual void OnHostResolveFailedImpl(const std::string &aHostName, int32_t aErrorCode) = 0;
515 void OnHostResolved(const std::string &aHostName, const DiscoveredHostInfo &aHostInfo);
[all …]
Dmdns_mdnssd.hpp73 void SubscribeHost(const std::string &aHostName) override;
74 void UnsubscribeHost(const std::string &aHostName) override;
85 void PublishServiceImpl(const std::string &aHostName,
98 void OnHostResolveFailedImpl(const std::string &aHostName, int32_t aErrorCode) override;
107 DnssdServiceRegistration(const std::string &aHostName, in DnssdServiceRegistration() argument
116 : ServiceRegistration(aHostName, in DnssdServiceRegistration()
221 const char * aHostName,
229 const char * aHostName,
285 explicit HostSubscription(PublisherMDnsSd &aMDnsSd, std::string aHostName) in HostSubscription()
288 , mHostName(std::move(aHostName)) in HostSubscription()
[all …]
Dmdns_avahi.hpp81 void SubscribeHost(const std::string &aHostName) override;
82 void UnsubscribeHost(const std::string &aHostName) override;
88 void PublishServiceImpl(const std::string &aHostName,
101 void OnHostResolveFailedImpl(const std::string &aHostName, int32_t aErrorCode) override;
111 AvahiServiceRegistration(const std::string &aHostName, in AvahiServiceRegistration() argument
120 : ServiceRegistration(aHostName, in AvahiServiceRegistration()
216 const char * aHostName,
230 const char * aHostName,
244 explicit HostSubscription(PublisherAvahi &aAvahiPublisher, std::string aHostName) in HostSubscription()
246 , mHostName(std::move(aHostName)) in HostSubscription()
Dmdns.cpp50 void Publisher::PublishService(const std::string &aHostName, in PublishService() argument
60 … PublishServiceImpl(aHostName, aName, aType, aSubTypeList, aPort, aTxtList, std::move(aCallback)); in PublishService()
77 void Publisher::OnHostResolveFailed(const std::string &aHostName, int32_t aErrorCode) in OnHostResolveFailed() argument
80 UpdateHostResolutionEmaLatency(aHostName, DnsErrorToOtbrError(aErrorCode)); in OnHostResolveFailed()
81 OnHostResolveFailedImpl(aHostName, aErrorCode); in OnHostResolveFailed()
204 void Publisher::OnHostResolved(const std::string &aHostName, const Publisher::DiscoveredHostInfo &a… in OnHostResolved() argument
206 otbrLogInfo("Host %s is resolved successfully: host %s addresses %zu ttl %u", aHostName.c_str(), in OnHostResolved()
215 UpdateHostResolutionEmaLatency(aHostName, OTBR_ERROR_NONE); in OnHostResolved()
221 subCallback.second.second(aHostName, aHostInfo); in OnHostResolved()
280 …blisher::ResultCallback Publisher::HandleDuplicateServiceRegistration(const std::string &aHostName, in HandleDuplicateServiceRegistration() argument
[all …]
Dmdns_mdnssd.cpp476 void PublisherMDnsSd::PublishServiceImpl(const std::string &aHostName, in PublishServiceImpl() argument
495 if (!aHostName.empty()) in PublishServiceImpl()
497 fullHostName = MakeFullHostName(aHostName); in PublishServiceImpl()
500 …aCallback = HandleDuplicateServiceRegistration(aHostName, aName, aType, sortedSubTypeList, aPort, … in PublishServiceImpl()
508 … !aHostName.empty() ? fullHostName.c_str() : nullptr, htons(aPort), in PublishServiceImpl()
511aHostName, aName, aType, sortedSubTypeList, aPort, sortedTxtList, std::move(aCallback), serviceRef… in PublishServiceImpl()
708 void PublisherMDnsSd::OnHostResolveFailedImpl(const std::string &aHostName, int32_t aErrorCode) in OnHostResolveFailedImpl() argument
710 otbrLogWarning("Resolve host %s failed: code=%" PRId32, aHostName.c_str(), aErrorCode); in OnHostResolveFailedImpl()
718 void PublisherMDnsSd::SubscribeHost(const std::string &aHostName) in SubscribeHost() argument
721 mSubscribedHosts.push_back(MakeUnique<HostSubscription>(*this, aHostName)); in SubscribeHost()
[all …]
Dmdns_avahi.cpp637 void PublisherAvahi::PublishServiceImpl(const std::string &aHostName, in PublishServiceImpl() argument
649 const std::string logHostName = !aHostName.empty() ? aHostName : "localhost"; in PublishServiceImpl()
660 if (!aHostName.empty()) in PublishServiceImpl()
662 fullHostName = MakeFullHostName(aHostName); in PublishServiceImpl()
665 …aCallback = HandleDuplicateServiceRegistration(aHostName, aName, aType, sortedSubTypeList, aPort, … in PublishServiceImpl()
691aHostName, aName, aType, sortedSubTypeList, aPort, sortedTxtList, std::move(aCallback), group, thi… in PublishServiceImpl()
912 void PublisherAvahi::OnHostResolveFailedImpl(const std::string &aHostName, int32_t aErrorCode) in OnHostResolveFailedImpl() argument
914 otbrLogWarning("Resolve host %s failed: %s", aHostName.c_str(), avahi_strerror(aErrorCode)); in OnHostResolveFailedImpl()
922 void PublisherAvahi::SubscribeHost(const std::string &aHostName) in SubscribeHost() argument
924 auto host = MakeUnique<HostSubscription>(*this, aHostName); in SubscribeHost()
[all …]
/external/openthread/src/core/api/
Ddns_api.cpp85 const char * aHostName, in otDnsClientResolveAddress() argument
90 return AsCoreType(aInstance).Get<Dns::Client>().ResolveAddress(aHostName, aCallback, aContext, in otDnsClientResolveAddress()
96 const char * aHostName, in otDnsClientResolveIp4Address() argument
101 … return AsCoreType(aInstance).Get<Dns::Client>().ResolveIp4Address(aHostName, aCallback, aContext, in otDnsClientResolveIp4Address()
157 const char * aHostName, in otDnsBrowseResponseGetHostAddress() argument
164 …return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), aTtl != nullp… in otDnsBrowseResponseGetHostAddress()
193 const char * aHostName, in otDnsServiceResponseGetHostAddress() argument
200 return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), in otDnsServiceResponseGetHostAddress()
/external/ot-br-posix/src/utils/
Ddns_utils.cpp76 void CheckHostnameSanity(const std::string &aHostName) in CheckHostnameSanity() argument
78 OTBR_UNUSED_VARIABLE(aHostName); in CheckHostnameSanity()
80 assert(aHostName.length() > 0); in CheckHostnameSanity()
81 assert(aHostName.back() == '.'); in CheckHostnameSanity()
Ddns_utils.hpp67 void CheckHostnameSanity(const std::string &aHostName);
/external/openthread/include/openthread/
Ddns_client.h207 const char * aHostName,
237 const char * aHostName,
451 const char * aHostName,
577 const char * aHostName,
/external/openthread/src/core/net/
Ddns_client.hpp258 Error CheckForHostNameAlias(Section aSection, Name &aHostName) const;
260 const Name & aHostName,
265 …Error FindARecord(Section aSection, const Name &aHostName, uint16_t aIndex, ARecord &aARecord) con…
452 …Error GetHostAddress(const char *aHostName, uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTt…
535 …Error GetHostAddress(const char *aHostName, uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTt…
607 Error ResolveAddress(const char * aHostName,
634 Error ResolveIp4Address(const char * aHostName,
Ddns_client.cpp140 Error Client::Response::CheckForHostNameAlias(Section aSection, Name &aHostName) const in CheckForHostNameAlias()
154 …error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, /* aIndex */ 0, aHostName, cname… in CheckForHostNameAlias()
162 aHostName.SetFromMessage(*mMessage, offset); in CheckForHostNameAlias()
179 const Name & aHostName, in FindHostAddress() argument
187 Name name = aHostName; in FindHostAddress()
203 Error Client::Response::FindARecord(Section aSection, const Name &aHostName, uint16_t aIndex, AReco… in FindARecord() argument
208 Name name = aHostName; in FindARecord()
394 Error Client::BrowseResponse::GetHostAddress(const char * aHostName, in GetHostAddress() argument
399 return FindHostAddress(kAdditionalDataSection, Name(aHostName), aIndex, aAddress, aTtl); in GetHostAddress()
486 Error Client::ServiceResponse::GetHostAddress(const char * aHostName, in GetHostAddress() argument
[all …]
Ddnssd_server.hpp344 const char * aHostName,
357 const char * aHostName,
Ddnssd_server.cpp355 const char * aHostName, in AppendSrvRecord() argument
377 SuccessOrExit(error = AppendHostName(aMessage, aHostName, aCompressInfo)); in AppendSrvRecord()
387 const char * aHostName, in AppendAaaaRecord() argument
399 SuccessOrExit(error = AppendHostName(aMessage, aHostName, aCompressInfo)); in AppendAaaaRecord()
/external/ot-br-posix/tests/unit/
Dtest_dns_utils.cpp43 const std::string &aHostName, in CheckSplitFullDnsName() argument
57 CHECK_EQUAL(aHostName, info.mHostName); in CheckSplitFullDnsName()
67 CHECK_EQUAL(aHostName, info.mHostName); in CheckSplitFullDnsName()
/external/ot-br-posix/src/sdp_proxy/
Ddiscovery_proxy.cpp86 [this](const std::string &aHostName, const Mdns::Publisher::DiscoveredHostInfo &aHostInfo) { in Start() argument
87 OnHostDiscovered(aHostName, aHostInfo); in Start()
230 void DiscoveryProxy::OnHostDiscovered(const std::string & aHostName, in OnHostDiscovered() argument
237 …otbrLogInfo("Host discovered: %s hostname %s addresses %zu", aHostName.c_str(), aHostInfo.mHostNam… in OnHostDiscovered()
242 resolvedHostName = aHostName + ".local."; in OnHostDiscovered()
271 if (DnsLabelsEqual(hostName, aHostName)) in OnHostDiscovered()
Ddiscovery_proxy.hpp96 …void OnHostDiscovered(const std::string &aHostName, const Mdns::Publisher::DiscoveredHostInfo &aHo…
/external/ot-br-posix/src/common/
Ddns_utils.cpp129 otbrError SplitFullHostName(const std::string &aFullName, std::string &aHostName, std::string &aDom… in SplitFullHostName() argument
136 aHostName = std::move(nameInfo.mHostName); in SplitFullHostName()
Ddns_utils.hpp130 otbrError SplitFullHostName(const std::string &aFullName, std::string &aHostName, std::string &aDom…