mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 23:27:46 +00:00
[coap] fixes in parameter name and in comments. (#10615)
This commit is contained in:
@@ -160,13 +160,13 @@ exit:
|
||||
return aMessage;
|
||||
}
|
||||
|
||||
Message *CoapBase::InitResponse(Message *aMessage, const Message &aResponse)
|
||||
Message *CoapBase::InitResponse(Message *aMessage, const Message &aRequest)
|
||||
{
|
||||
Error error = kErrorNone;
|
||||
|
||||
VerifyOrExit(aMessage != nullptr);
|
||||
|
||||
SuccessOrExit(error = aMessage->SetDefaultResponseHeader(aResponse));
|
||||
SuccessOrExit(error = aMessage->SetDefaultResponseHeader(aRequest));
|
||||
SuccessOrExit(error = aMessage->SetPayloadMarker());
|
||||
|
||||
exit:
|
||||
|
||||
@@ -887,7 +887,7 @@ private:
|
||||
};
|
||||
|
||||
Message *InitMessage(Message *aMessage, Type aType, Uri aUri);
|
||||
Message *InitResponse(Message *aMessage, const Message &aResponse);
|
||||
Message *InitResponse(Message *aMessage, const Message &aRequest);
|
||||
|
||||
static void HandleRetransmissionTimer(Timer &aTimer);
|
||||
void HandleRetransmissionTimer(void);
|
||||
|
||||
@@ -777,7 +777,7 @@ public:
|
||||
bool IsReset(void) const { return (GetType() == kTypeReset); }
|
||||
|
||||
/**
|
||||
* Indicates whether or not the header is a confirmable Put request (i.e, `kTypeConfirmable` with
|
||||
* Indicates whether or not the header is a confirmable Post request (i.e, `kTypeConfirmable` with
|
||||
* `kCodePost`).
|
||||
*
|
||||
* @retval TRUE Message is a confirmable Post request.
|
||||
@@ -787,7 +787,7 @@ public:
|
||||
bool IsConfirmablePostRequest(void) const;
|
||||
|
||||
/**
|
||||
* Indicates whether or not the header is a non-confirmable Put request (i.e, `kTypeNonConfirmable` with
|
||||
* Indicates whether or not the header is a non-confirmable Post request (i.e, `kTypeNonConfirmable` with
|
||||
* `kCodePost`).
|
||||
*
|
||||
* @retval TRUE Message is a non-confirmable Post request.
|
||||
|
||||
Reference in New Issue
Block a user