Home
last modified time | relevance | path

Searched refs:aService (Results 1 – 25 of 43) sorted by relevance

12

/openthread-latest/src/core/api/
Dsrp_server_api.cpp157 const otSrpServerService *aService) in otSrpServerHostGetNextService() argument
159 return AsCoreType(aHost).GetNextService(AsCoreTypePtr(aService)); in otSrpServerHostGetNextService()
162 bool otSrpServerServiceIsDeleted(const otSrpServerService *aService) { return AsCoreType(aService).… in otSrpServerServiceIsDeleted() argument
164 const char *otSrpServerServiceGetInstanceName(const otSrpServerService *aService) in otSrpServerServiceGetInstanceName() argument
166 return AsCoreType(aService).GetInstanceName(); in otSrpServerServiceGetInstanceName()
169 bool otSrpServerServiceMatchesInstanceName(const otSrpServerService *aService, const char *aInstanc… in otSrpServerServiceMatchesInstanceName() argument
171 return AsCoreType(aService).MatchesInstanceName(aInstanceName); in otSrpServerServiceMatchesInstanceName()
174 const char *otSrpServerServiceGetInstanceLabel(const otSrpServerService *aService) in otSrpServerServiceGetInstanceLabel() argument
176 return AsCoreType(aService).GetInstanceLabel(); in otSrpServerServiceGetInstanceLabel()
179 const char *otSrpServerServiceGetServiceName(const otSrpServerService *aService) in otSrpServerServiceGetServiceName() argument
[all …]
Dmdns_api.cpp82 const otMdnsService *aService, in otMdnsRegisterService() argument
86 AssertPointerIsNotNull(aService); in otMdnsRegisterService()
88 …return AsCoreType(aInstance).Get<Dns::Multicast::Core>().RegisterService(*aService, aRequestId, aC… in otMdnsRegisterService()
91 otError otMdnsUnregisterService(otInstance *aInstance, const otMdnsService *aService) in otMdnsUnregisterService() argument
93 AssertPointerIsNotNull(aService); in otMdnsUnregisterService()
95 return AsCoreType(aInstance).Get<Dns::Multicast::Core>().UnregisterService(*aService); in otMdnsUnregisterService()
140 otMdnsService *aService, in otMdnsGetNextService() argument
144 AssertPointerIsNotNull(aService); in otMdnsGetNextService()
147 …return AsCoreType(aInstance).Get<Dns::Multicast::Core>().GetNextService(*aIterator, *aService, *aS… in otMdnsGetNextService()
Dsrp_client_api.cpp125 otError otSrpClientAddService(otInstance *aInstance, otSrpClientService *aService) in otSrpClientAddService() argument
127 return AsCoreType(aInstance).Get<Srp::Client>().AddService(AsCoreType(aService)); in otSrpClientAddService()
130 otError otSrpClientRemoveService(otInstance *aInstance, otSrpClientService *aService) in otSrpClientRemoveService() argument
132 return AsCoreType(aInstance).Get<Srp::Client>().RemoveService(AsCoreType(aService)); in otSrpClientRemoveService()
135 otError otSrpClientClearService(otInstance *aInstance, otSrpClientService *aService) in otSrpClientClearService() argument
137 return AsCoreType(aInstance).Get<Srp::Client>().ClearService(AsCoreType(aService)); in otSrpClientClearService()
Dsrp_client_buffers_api.cpp63 void otSrpClientBuffersFreeService(otInstance *aInstance, otSrpClientBuffersServiceEntry *aService) in otSrpClientBuffersFreeService() argument
65 AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().FreeService(AsCoreType(aService)); in otSrpClientBuffersFreeService()
/openthread-latest/include/openthread/
Dsrp_server.h459 const otSrpServerService *aService);
472 bool otSrpServerServiceIsDeleted(const otSrpServerService *aService);
481 const char *otSrpServerServiceGetInstanceName(const otSrpServerService *aService);
495 bool otSrpServerServiceMatchesInstanceName(const otSrpServerService *aService, const char *aInstanc…
504 const char *otSrpServerServiceGetInstanceLabel(const otSrpServerService *aService);
513 const char *otSrpServerServiceGetServiceName(const otSrpServerService *aService);
527 bool otSrpServerServiceMatchesServiceName(const otSrpServerService *aService, const char *aServiceN…
536 uint16_t otSrpServerServiceGetNumberOfSubTypes(const otSrpServerService *aService);
548 const char *otSrpServerServiceGetSubTypeServiceNameAt(const otSrpServerService *aService, uint16_t …
562 bool otSrpServerServiceHasSubTypeServiceName(const otSrpServerService *aService, const char *aSubTy…
[all …]
Dsrp_client.h510 otError otSrpClientAddService(otInstance *aInstance, otSrpClientService *aService);
530 otError otSrpClientRemoveService(otInstance *aInstance, otSrpClientService *aService);
549 otError otSrpClientClearService(otInstance *aInstance, otSrpClientService *aService);
Dmdns.h304 const otMdnsService *aService,
330 otError otMdnsUnregisterService(otInstance *aInstance, const otMdnsService *aService);
455 otMdnsService *aService,
/openthread-latest/src/core/net/
Dsrp_advertising_proxy.cpp200 template <> void AdvertisingProxy::UpdateAdvIdRangeOn(Service &aService) in UpdateAdvIdRangeOn() argument
205 UpdateAdvIdRangeOn<Host>(*aService.mHost); in UpdateAdvIdRangeOn()
314 void AdvertisingProxy::AdvertiseRemovalOf(Service &aService) in AdvertiseRemovalOf() argument
316 …LogInfo("Adv removal of service '%s' '%s'", aService.GetInstanceLabel(), aService.GetServiceName()… in AdvertiseRemovalOf()
321 aService.mShouldAdvertise = aService.mIsRegistered; in AdvertiseRemovalOf()
332 if (!aService.mHost->Matches(advHost.GetFullName())) in AdvertiseRemovalOf()
342 advService = advHost.FindService(aService.GetInstanceName()); in AdvertiseRemovalOf()
350 if (aService.mShouldAdvertise) in AdvertiseRemovalOf()
352 UnregisterService(aService); in AdvertiseRemovalOf()
355 if (aService.mKeyLease == 0) in AdvertiseRemovalOf()
[all …]
Dsrp_advertising_proxy.hpp156 void AdvertiseRemovalOf(Service &aService);
268 bool CompareAndUpdateService(Service &aService, Service &aExistingService);
271 void RegisterService(Service &aService);
272 void UnregisterService(Service &aService);
274 void RegisterKey(Service &aService);
280 void UnregisterKey(Service &aService);
Dsrp_client.cpp778 Error Client::AddService(Service &aService) in AddService() argument
782 VerifyOrExit(mServices.FindMatching(aService) == nullptr, error = kErrorAlready); in AddService()
784 SuccessOrExit(error = aService.Init()); in AddService()
785 mServices.Push(aService); in AddService()
787 aService.SetState(kToAdd); in AddService()
794 Error Client::RemoveService(Service &aService) in RemoveService() argument
799 VerifyOrExit(mServices.Contains(aService), error = kErrorNotFound); in RemoveService()
801 UpdateServiceStateToRemove(aService); in RemoveService()
808 void Client::UpdateServiceStateToRemove(Service &aService) in UpdateServiceStateToRemove() argument
810 if (aService.GetState() != kRemoving) in UpdateServiceStateToRemove()
[all …]
Ddnssd.cpp118 void Dnssd::RegisterService(const Service &aService, RequestId aRequestId, RegisterCallback aCallba… in RegisterService() argument
127 IgnoreError(Get<Dns::Multicast::Core>().RegisterService(aService, aRequestId, aCallback)); in RegisterService()
133 otPlatDnssdRegisterService(&GetInstance(), &aService, aRequestId, aCallback); in RegisterService()
140 void Dnssd::UnregisterService(const Service &aService, RequestId aRequestId, RegisterCallback aCall… in UnregisterService() argument
149 IgnoreError(Get<Dns::Multicast::Core>().UnregisterService(aService)); in UnregisterService()
157 otPlatDnssdUnregisterService(&GetInstance(), &aService, aRequestId, aCallback); in UnregisterService()
Dsrp_client.hpp582 Error AddService(Service &aService);
595 Error RemoveService(Service &aService);
610 Error ClearService(Service &aService);
1011 void UpdateServiceStateToRemove(Service &aService);
1022 bool CanAppendService(const Service &aService);
1023 Error AppendServiceInstruction(Service &aService, MsgInfo &aInfo);
1045 bool ShouldRenewEarly(const Service &aService) const;
Ddnssd.hpp222 void RegisterService(const Service &aService, RequestId aRequestId, RegisterCallback aCallback);
234 … void UnregisterService(const Service &aService, RequestId aRequestId, RegisterCallback aCallback);
/openthread-latest/src/cli/
Dcli_mdns.cpp103 void Mdns::OutputService(const otMdnsService &aService) in OutputService() argument
105 OutputLine("Service %s for %s", aService.mServiceInstance, aService.mServiceType); in OutputService()
106 OutputLine(kIndentSize, "host: %s", aService.mHostName); in OutputService()
108 if (aService.mSubTypeLabelsLength > 0) in OutputService()
110 OutputLine(kIndentSize, "%u sub-type:", aService.mSubTypeLabelsLength); in OutputService()
112 for (uint16_t index = 0; index < aService.mSubTypeLabelsLength; index++) in OutputService()
114 OutputLine(kIndentSize * 2, "%s", aService.mSubTypeLabels[index]); in OutputService()
118 OutputLine(kIndentSize, "port: %u", aService.mPort); in OutputService()
119 OutputLine(kIndentSize, "priority: %u", aService.mPriority); in OutputService()
120 OutputLine(kIndentSize, "weight: %u", aService.mWeight); in OutputService()
[all …]
Dcli_srp_client.cpp827 void SrpClient::OutputService(uint8_t aIndentSize, const otSrpClientService &aService) in OutputService() argument
829 OutputFormat(aIndentSize, "instance:\"%s\", name:\"%s", aService.mInstanceName, aService.mName); in OutputService()
831 if (aService.mSubTypeLabels != nullptr) in OutputService()
833 for (uint16_t index = 0; aService.mSubTypeLabels[index] != nullptr; index++) in OutputService()
835 OutputFormat(",%s", aService.mSubTypeLabels[index]); in OutputService()
839 …ine("\", state:%s, port:%d, priority:%d, weight:%d", otSrpClientItemStateToString(aService.mState), in OutputService()
840 aService.mPort, aService.mPriority, aService.mWeight); in OutputService()
Dcli_mdns.hpp108 void OutputService(const otMdnsService &aService);
129 static otError ParseServiceArgs(Arg aArgs[], otMdnsService &aService, Buffers &aBuffers);
/openthread-latest/src/lib/spinel/
Dspinel_prop_codec.cpp136 otPlatDnssdService &aService, in DecodeDnssdService() argument
146 SuccessOrExit(error = aDecoder.ReadUtf8(aService.mHostName)); in DecodeDnssdService()
147 SuccessOrExit(error = aDecoder.ReadUtf8(aService.mServiceInstance)); in DecodeDnssdService()
148 SuccessOrExit(error = aDecoder.ReadUtf8(aService.mServiceType)); in DecodeDnssdService()
158 SuccessOrExit(error = aDecoder.ReadDataWithLen(aService.mTxtData, aService.mTxtDataLength)); in DecodeDnssdService()
159 SuccessOrExit(error = aDecoder.ReadUint16(aService.mPort)); in DecodeDnssdService()
160 SuccessOrExit(error = aDecoder.ReadUint16(aService.mPriority)); in DecodeDnssdService()
161 SuccessOrExit(error = aDecoder.ReadUint16(aService.mWeight)); in DecodeDnssdService()
162 SuccessOrExit(error = aDecoder.ReadUint32(aService.mTtl)); in DecodeDnssdService()
/openthread-latest/tests/unit/
Dtest_srp_server.cpp294 void PrepareService1(Srp::Client::Service &aService) in PrepareService1() argument
314 memset(&aService, 0, sizeof(aService)); in PrepareService1()
315 aService.mName = kServiceName; in PrepareService1()
316 aService.mInstanceName = kInstanceLabel; in PrepareService1()
317 aService.mSubTypeLabels = kSubLabels; in PrepareService1()
318 aService.mTxtEntries = kTxtEntries; in PrepareService1()
319 aService.mNumTxtEntries = 3; in PrepareService1()
320 aService.mPort = 777; in PrepareService1()
321 aService.mWeight = 1; in PrepareService1()
322 aService.mPriority = 2; in PrepareService1()
[all …]
Dtest_srp_adv_proxy.cpp150 const otPlatDnssdService *aService, in otPlatDnssdRegisterService() argument
155 Log(" hostName : %s", aService->mHostName); in otPlatDnssdRegisterService()
156 Log(" serviceInstance: %s", aService->mServiceInstance); in otPlatDnssdRegisterService()
157 Log(" serviceType : %s", aService->mServiceType); in otPlatDnssdRegisterService()
158 Log(" num sub-types : %u", aService->mSubTypeLabelsLength); in otPlatDnssdRegisterService()
160 for (uint16_t index = 0; index < aService->mSubTypeLabelsLength; index++) in otPlatDnssdRegisterService()
162 Log(" sub-type %-4u : %s", index, aService->mSubTypeLabels[index]); in otPlatDnssdRegisterService()
165 Log(" TXT data len : %u", aService->mTxtDataLength); in otPlatDnssdRegisterService()
166 Log(" port : %u", aService->mPort); in otPlatDnssdRegisterService()
167 Log(" priority : %u", aService->mPriority); in otPlatDnssdRegisterService()
[all …]
Dtest_dns_client.cpp255 void PrepareService1(Srp::Client::Service &aService) in PrepareService1() argument
273 memset(&aService, 0, sizeof(aService)); in PrepareService1()
274 aService.mName = kService1Name; in PrepareService1()
275 aService.mInstanceName = kInstance1Label; in PrepareService1()
276 aService.mSubTypeLabels = kSubLabels; in PrepareService1()
277 aService.mTxtEntries = kTxtEntries; in PrepareService1()
278 aService.mNumTxtEntries = 3; in PrepareService1()
279 aService.mPort = 777; in PrepareService1()
280 aService.mWeight = 1; in PrepareService1()
281 aService.mPriority = 2; in PrepareService1()
[all …]
/openthread-latest/examples/platforms/simulation/
Ddnssd.c42 const otPlatDnssdService *aService, in otPlatDnssdRegisterService() argument
47 OT_UNUSED_VARIABLE(aService); in otPlatDnssdRegisterService()
53 const otPlatDnssdService *aService, in otPlatDnssdUnregisterService() argument
58 OT_UNUSED_VARIABLE(aService); in otPlatDnssdUnregisterService()
/openthread-latest/src/ncp/platform/
Ddnssd.cpp43 const otPlatDnssdService *aService, in otPlatDnssdRegisterService() argument
50 ncp->DnssdRegisterService(aService, aRequestId, aCallback); in otPlatDnssdRegisterService()
54 const otPlatDnssdService *aService, in otPlatDnssdUnregisterService() argument
61 ncp->DnssdUnregisterService(aService, aRequestId, aCallback); in otPlatDnssdUnregisterService()
/openthread-latest/src/core/thread/
Dnetwork_data_leader_ftd.cpp497 Error Leader::ValidateService(const ServiceTlv &aService, uint16_t aRloc16) in ValidateService() argument
503 const NetworkDataTlv *subEnd = aService.GetNext(); in ValidateService()
506 …for (const NetworkDataTlv *subCur = aService.GetSubTlvs(); subCur < subEnd; subCur = subCur->GetNe… in ValidateService()
596 bool Leader::ContainsMatchingServer(const ServiceTlv *aService, const ServerTlv &aServer) in ContainsMatchingServer() argument
603 if (aService != nullptr) in ContainsMatchingServer()
606 TlvIterator subTlvIterator(*aService); in ContainsMatchingServer()
623 …ader::UpdateStatus Leader::UpdateService(ServiceTlv &aService) { return UpdateTlv(aService, aServi… in UpdateService() argument
795 Error Leader::AddService(const ServiceTlv &aService, ChangedFlags &aChangedFlags) in AddService() argument
802 aService.GetServiceData(serviceData); in AddService()
803 dstService = FindService(aService.GetEnterpriseNumber(), serviceData, kServiceExactMatch); in AddService()
[all …]
Dnetwork_data.cpp349 bool NetworkData::ContainsService(const ServiceConfig &aService) const in ContainsService()
355 while (GetNextService(iterator, aService.GetServerConfig().mRloc16, service) == kErrorNone) in ContainsService()
357 if (service == aService) in ContainsService()
700 bool MutableNetworkData::RemoveTemporaryDataIn(ServiceTlv &aService) in RemoveTemporaryDataIn() argument
702 NetworkDataTlv *cur = aService.GetSubTlvs(); in RemoveTemporaryDataIn()
704 while (cur < aService.GetNext()) in RemoveTemporaryDataIn()
711 As<ServerTlv>(cur)->SetServer16(Mle::ServiceAlocFromId(aService.GetServiceId())); in RemoveTemporaryDataIn()
726 aService.SetSubTlvsLength(aService.GetSubTlvsLength() - subTlvSize); in RemoveTemporaryDataIn()
730 return (aService.GetSubTlvsLength() == 0); in RemoveTemporaryDataIn()
Dnetwork_data_leader.hpp561 Error AddService(const ServiceTlv &aService, ChangedFlags &aChangedFlags);
582 void RemoveRlocInService(ServiceTlv &aService,
604 static Error ValidateService(const ServiceTlv &aService, uint16_t aRloc16);
610 static bool ContainsMatchingServer(const ServiceTlv *aService, const ServerTlv &aServer);
613 UpdateStatus UpdateService(ServiceTlv &aService);

12