Home
last modified time | relevance | path

Searched refs:Coap (Results 1 – 25 of 60) sorted by relevance

123

/openthread-3.7.0/src/core/thread/
Dnetwork_diagnostic.hpp189 Coap::Message *mFirstAnswer;
207 Error AllocateAnswer(Coap::Message *&aAnswer, AnswerInfo &aInfo);
208 Error CheckAnswerLength(Coap::Message *&aAnswer, AnswerInfo &aInfo);
209 bool IsLastAnswer(const Coap::Message &aAnswer) const;
210 void FreeAllRelatedAnswers(Coap::Message &aFirstAnswer);
212 void SendNextAnswer(Coap::Message &aAnswer, const Ip6::Address &aDestination);
214 Error AppendChildTableAsChildTlvs(Coap::Message *&aAnswer, AnswerInfo &aInfo);
215 Error AppendRouterNeighborTlvs(Coap::Message *&aAnswer, AnswerInfo &aInfo);
216 Error AppendChildTableIp6AddressList(Coap::Message *&aAnswer, AnswerInfo &aInfo);
217 Error AppendChildIp6AddressListTlv(Coap::Message &aAnswer, const Child &aChild);
[all …]
Dtmf.hpp58 …template <> void Type::HandleTmf<kUri>(Coap::Message & aMessage, const Ip6::MessageInfo &aMessageI…
62 typedef Coap::Message Message; ///< A TMF message.
146 class Agent : public Coap::Coap
223 class SecureAgent : public Coap::CoapSecure
Dnetwork_diagnostic.cpp412 void Server::HandleTmf<kUriDiagnosticGetQuery>(Coap::Message &aMessage, const Ip6::MessageInfo &aMe… in HandleTmf()
440 Coap::Message *answer = nullptr; in SendAnswer()
472 Error Server::AllocateAnswer(Coap::Message *&aAnswer, AnswerInfo &aInfo) in AllocateAnswer()
500 bool Server::IsLastAnswer(const Coap::Message &aAnswer) const in IsLastAnswer()
517 void Server::FreeAllRelatedAnswers(Coap::Message &aFirstAnswer) in FreeAllRelatedAnswers()
523 Coap::Message *answer = &aFirstAnswer; in FreeAllRelatedAnswers()
527 Coap::Message *next = IsLastAnswer(*answer) ? nullptr : answer->GetNextCoapMessage(); in FreeAllRelatedAnswers()
536 Coap::Message *answer; in PrepareAndSendAnswers()
593 Error Server::CheckAnswerLength(Coap::Message *&aAnswer, AnswerInfo &aInfo) in CheckAnswerLength()
615 void Server::SendNextAnswer(Coap::Message &aAnswer, const Ip6::Address &aDestination) in SendNextAnswer()
[all …]
Danycast_locator.cpp56 Coap::Message *message = nullptr; in Locate()
90 void AnycastLocator::HandleResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, … in HandleResponse()
118 void AnycastLocator::HandleTmf<kUriAnycastLocate>(Coap::Message &aMessage, const Ip6::MessageInfo &… in HandleTmf()
120 Coap::Message *message = nullptr; in HandleTmf()
/openthread-3.7.0/src/cli/
Dcli_coap.cpp47 Coap::Coap(otInstance *aInstance, OutputImplementer &aOutputImplementer) in Coap() function in ot::Cli::Coap
75 otError Coap::CancelResourceSubscription(void) in CancelResourceSubscription()
95 …SuccessOrExit(error = otCoapSendRequest(GetInstancePtr(), message, &messageInfo, &Coap::HandleResp… in CancelResourceSubscription()
111 void Coap::CancelSubscriber(void) in CancelSubscriber()
118 void Coap::PrintPayload(otMessage *aMessage) in PrintPayload()
156 template <> otError Coap::Process<Cmd("cancel")>(Arg aArgs[]) in Process()
181 template <> otError Coap::Process<Cmd("resource")>(Arg aArgs[]) in Process()
191 mResource.mHandler = &Coap::HandleRequest; in Process()
194 mResource.mReceiveHook = &Coap::BlockwiseReceiveHook; in Process()
195 mResource.mTransmitHook = &Coap::BlockwiseTransmitHook; in Process()
[all …]
/openthread-3.7.0/src/core/meshcop/
Dborder_agent.cpp61 const Coap::Message &aMessage, in Init()
76 Error BorderAgent::ForwardContext::ToHeader(Coap::Message &aMessage, uint8_t aCode) const in ToHeader()
78 if ((mType == Coap::kTypeNonConfirmable) || mSeparate) in ToHeader()
80 aMessage.Init(Coap::kTypeNonConfirmable, static_cast<Coap::Code>(aCode)); in ToHeader()
84 aMessage.Init(Coap::kTypeAck, static_cast<Coap::Code>(aCode)); in ToHeader()
98 Coap::Message::Code BorderAgent::CoapCodeFromError(Error aError) in CoapCodeFromError()
100 Coap::Message::Code code; in CoapCodeFromError()
105 code = Coap::kCodeChanged; in CoapCodeFromError()
109 code = Coap::kCodeBadRequest; in CoapCodeFromError()
113 code = Coap::kCodeInternalError; in CoapCodeFromError()
[all …]
Dborder_agent.hpp262 … Error Init(Instance &aInstance, const Coap::Message &aMessage, bool aPetition, bool aSeparate);
265 Error ToHeader(Coap::Message &aMessage, uint8_t aCode) const;
273 uint8_t mToken[Coap::Message::kMaxTokenLength]; // The CoAP Token of the original request.
281 Coap::Message::Code CoapCodeFromError(Error aError);
282 Error SendMessage(Coap::Message &aMessage);
284 … void SendErrorMessage(const Coap::Message &aRequest, bool aSeparate, Error aError);
289 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
305 …void HandleCoapResponse(const ForwardContext &aForwardContext, const Coap::Message *aResponse, Er…
306 …Error ForwardToLeader(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, Uri aUr…
307 Error ForwardToCommissioner(Coap::Message &aForwardMessage, const Message &aMessage);
Ddataset_manager.hpp290 void HandleGet(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const;
297 void SendGetResponse(const Coap::Message &aRequest,
300 …void HandleMgmtSetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error a…
314 …Error HandleSetOrReplace(MgmtCommand aCommand, const Coap::Message &aMessage, const Ip6::MessageIn…
315 …Error ProcessSetOrReplaceRequest(MgmtCommand aCommand, const Coap::Message &aMessage, RequestInfo …
316 void SendSetOrReplaceResponse(const Coap::Message &aRequest,
409 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
457 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
Djoiner.hpp209 …void HandleJoinerFinalizeResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, E…
211 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
230 …void SendJoinerEntrustResponse(const Coap::Message &aRequest, const Ip6::MessageInfo &aRequestInf…
233 void LogCertMessage(const char *aText, const Coap::Message &aMessage) const;
248 Coap::Message *mFinalizeMessage;
Dmeshcop_leader.cpp66 template <> void Leader::HandleTmf<kUriLeaderPetition>(Coap::Message &aMessage, const Ip6::MessageI… in HandleTmf()
100 void Leader::SendPetitionResponse(const Coap::Message &aRequest, in SendPetitionResponse()
105 Coap::Message *message; in SendPetitionResponse()
131 template <> void Leader::HandleTmf<kUriLeaderKeepAlive>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf()
177 void Leader::SendKeepAliveResponse(const Coap::Message &aRequest, in SendKeepAliveResponse()
182 Coap::Message *message; in SendKeepAliveResponse()
202 Coap::Message *message; in SendDatasetChanged()
Dcommissioner.hpp422 void HandleMgmtCommissionerSetResponse(Coap::Message *aMessage,
429 void HandleMgmtCommissionerGetResponse(Coap::Message *aMessage,
436 …void HandleLeaderPetitionResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, E…
441 …void HandleLeaderKeepAliveResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, …
446 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
448 void HandleRelayReceive(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
452 void SendJoinFinalizeResponse(const Coap::Message &aRequest, StateTlv::State aState);
Dmeshcop_leader.hpp124 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
126 void SendPetitionResponse(const Coap::Message &aRequest,
130 void SendKeepAliveResponse(const Coap::Message &aRequest,
Djoiner_router.hpp106 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
112 …void HandleJoinerEntrustResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Er…
120 Coap::Message *PrepareJoinerEntrustMessage(void);
Dcommissioner.cpp627 Coap::Message *message; in SendMgmtCommissionerGetRequest()
662 void Commissioner::HandleMgmtCommissionerGetResponse(Coap::Message *aMessage, in HandleMgmtCommissionerGetResponse()
668 VerifyOrExit(aResult == kErrorNone && aMessage->GetCode() == Coap::kCodeChanged); in HandleMgmtCommissionerGetResponse()
680 Coap::Message *message; in SendMgmtCommissionerSetRequest()
733 void Commissioner::HandleMgmtCommissionerSetResponse(Coap::Message *aMessage, in HandleMgmtCommissionerSetResponse()
743 …VerifyOrExit(aMessage->GetCode() == Coap::kCodeChanged && Tlv::Find<StateTlv>(*aMessage, state) ==… in HandleMgmtCommissionerSetResponse()
756 Coap::Message *message = nullptr; in SendPetition()
786 void Commissioner::HandleLeaderPetitionResponse(Coap::Message *aMessage, in HandleLeaderPetitionResponse()
796 VerifyOrExit(aResult == kErrorNone && aMessage->GetCode() == Coap::kCodeChanged, in HandleLeaderPetitionResponse()
842 Coap::Message *message = nullptr; in SendKeepAlive()
[all …]
Djoiner_router.cpp137 Coap::Message *message = nullptr; in HandleUdpReceive()
168 template <> void JoinerRouter::HandleTmf<kUriRelayTx>(Coap::Message &aMessage, const Ip6::MessageIn… in HandleTmf()
273 Coap::Message *message; in SendJoinerEntrust()
291 Coap::Message *JoinerRouter::PrepareJoinerEntrustMessage(void) in PrepareJoinerEntrustMessage()
299 Coap::Message *message = nullptr; in PrepareJoinerEntrustMessage()
333 void JoinerRouter::HandleJoinerEntrustResponse(Coap::Message *aMessage, in HandleJoinerEntrustResponse()
343 VerifyOrExit(aMessage->GetCode() == Coap::kCodeChanged); in HandleJoinerEntrustResponse()
Ddataset_manager_ftd.cpp69 const Coap::Message &aMessage, in ProcessSetOrReplaceRequest()
210 const Coap::Message &aMessage, in HandleSetOrReplace()
254 void DatasetManager::SendSetOrReplaceResponse(const Coap::Message &aRequest, in SendSetOrReplaceResponse()
259 Coap::Message *message; in SendSetOrReplaceResponse()
382 void ActiveDatasetManager::HandleTmf<kUriActiveSet>(Coap::Message &aMessage, const Ip6::MessageInfo… in HandleTmf()
392 void ActiveDatasetManager::HandleTmf<kUriActiveReplace>(Coap::Message &aMessage, const Ip6::Message… in HandleTmf()
407 void PendingDatasetManager::HandleTmf<kUriPendingSet>(Coap::Message &aMessage, const Ip6::MessageIn… in HandleTmf()
/openthread-3.7.0/src/core/backbone_router/
Dbackbone_tmf.hpp53 class BackboneTmfAgent : public Coap::Coap
101 ot::Coap::Message &aMessage,
103 …bool HandleResource(const char *aUriPath, ot::Coap::Message &aMessage, const Ip6::MessageIn…
105 …static Error Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void …
Dbackbone_tmf.cpp47 : Coap::Coap(aInstance) in BackboneTmfAgent()
57 SuccessOrExit(error = Coap::Start(kBackboneUdpPort, Ip6::kNetifBackbone)); in Start()
67 ot::Coap::Message &aMessage, in HandleResource()
74 ot::Coap::Message &aMessage, in HandleResource()
105 Error BackboneTmfAgent::Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageI… in Filter()
Dbbr_manager.cpp136 template <> void Manager::HandleTmf<kUriMlr>(Coap::Message &aMessage, const Ip6::MessageInfo &aMess… in HandleTmf()
145 void Manager::HandleMulticastListenerRegistration(const Coap::Message &aMessage, const Ip6::Message… in HandleMulticastListenerRegistration()
284 void Manager::SendMulticastListenerRegistrationResponse(const Coap::Message &aMessage, in SendMulticastListenerRegistrationResponse()
291 Coap::Message *message; in SendMulticastListenerRegistrationResponse()
324 Coap::Message *message = nullptr; in SendBackboneMulticastListenerRegistration()
358 void Manager::HandleTmf<kUriDuaRegistrationRequest>(Coap::Message &aMessage, const Ip6::MessageInfo… in HandleTmf()
367 void Manager::HandleDuaRegistration(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessage… in HandleDuaRegistration()
377 Coap::Code duaRespCoapCode = Coap::kCodeEmpty; in HandleDuaRegistration()
390 if (mDuaResponseStatus >= Coap::kCodeResponseMin) in HandleDuaRegistration()
392 duaRespCoapCode = static_cast<Coap::Code>(mDuaResponseStatus); in HandleDuaRegistration()
[all …]
Dbbr_manager.hpp178 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
181 …void HandleMulticastListenerRegistration(const Coap::Message &aMessage, const Ip6::MessageInfo &aM…
183 void SendMulticastListenerRegistrationResponse(const Coap::Message &aMessage,
194 … void HandleDuaRegistration(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
212 void SendDuaRegistrationResponse(const Coap::Message &aMessage,
/openthread-3.7.0/src/core/api/
Dcoap_api.cpp58 Coap::Message &response = AsCoapMessage(aResponse); in otCoapMessageInitResponse()
59 const Coap::Message &request = AsCoapMessage(aRequest); in otCoapMessageInitResponse()
104 return static_cast<uint16_t>(1 << (static_cast<uint8_t>(aSize) + Coap::Message::kBlockSzxBase)); in otCoapBlockSizeFromExponent()
109 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType2, aNum, aMore, aSize); in otCoapMessageAppendBlock2Option()
114 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType1, aNum, aMore, aSize); in otCoapMessageAppendBlock1Option()
161 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetFirstOptionMatching()
169 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetFirstOption()
177 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetNextOptionMatching()
185 Coap::Option::Iterator &iterator = AsCoreType(aIterator); in otCoapOptionIteratorGetNextOption()
212 const Coap::TxParameters &txParameters = Coap::TxParameters::From(aTxParameters); in otCoapSendRequestBlockWiseWithParameters()
[all …]
/openthread-3.7.0/src/core/coap/
Dcoap_message.hpp60 namespace Coap { namespace
175 typedef ot::Coap::Type Type; ///< CoAP Type.
176 typedef ot::Coap::Code Code; ///< CoAP Code.
1258 DefineCoreType(otCoapOption, Coap::Option);
1259 DefineCoreType(otCoapOptionIterator, Coap::Option::Iterator);
1260 DefineMapEnum(otCoapType, Coap::Type);
1261 DefineMapEnum(otCoapCode, Coap::Code);
1271 inline Coap::Message &AsCoapMessage(otMessage *aMessage) { return *static_cast<Coap::Message *>(aMe… in AsCoapMessage()
1281 inline Coap::Message *AsCoapMessagePtr(otMessage *aMessage) { return static_cast<Coap::Message *>(a… in AsCoapMessagePtr()
1291 inline const Coap::Message &AsCoapMessage(const otMessage *aMessage) in AsCoapMessage()
[all …]
/openthread-3.7.0/src/core/utils/
Dmesh_diag.hpp298 bool HandleDiagnosticGetAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
299 …Error ProcessMessage(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, uint16_t aSend…
300 bool ProcessChildTableAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
301 …bool ProcessChildrenIp6AddrsAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
302 …bool ProcessRouterNeighborTableAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageIn…
304 …void HandleDiagGetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aR…
Dotns.cpp160 void Otns::EmitCoapSend(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapSend()
162 char uriPath[Coap::Message::kMaxReceivedUriPath + 1]; in EmitCoapSend()
174 void Otns::EmitCoapReceive(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo) in EmitCoapReceive()
176 char uriPath[Coap::Message::kMaxReceivedUriPath + 1]; in EmitCoapReceive()
187 void Otns::EmitCoapSendFailure(Error aError, Coap::Message &aMessage, const Ip6::MessageInfo &aMess… in EmitCoapSendFailure()
189 char uriPath[Coap::Message::kMaxReceivedUriPath + 1]; in EmitCoapSendFailure()
Dotns.hpp154 static void EmitCoapSend(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
164 …static void EmitCoapSendFailure(Error aError, Coap::Message &aMessage, const Ip6::MessageInfo &aMe…
173 … static void EmitCoapReceive(const Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);

123