コード例 #1
0
ファイル: coap.hpp プロジェクト: abtink/openthread
 /**
  * This method sends a CoAP ACK empty message which is used in Separate Response for confirmable requests.
  *
  * @param[in]  aRequest        A reference to the CoAP Message that was used in CoAP request.
  * @param[in]  aMessageInfo    The message info corresponding to the CoAP request.
  *
  * @retval OT_ERROR_NONE          Successfully enqueued the CoAP response message.
  * @retval OT_ERROR_NO_BUFS       Insufficient buffers available to send the CoAP response.
  * @retval OT_ERROR_INVALID_ARGS  The @p aRequest header is not of confirmable type.
  *
  */
 otError SendAck(const Message &aRequest, const Ip6::MessageInfo &aMessageInfo)
 {
     return SendEmptyMessage(OT_COAP_TYPE_ACKNOWLEDGMENT, aRequest, aMessageInfo);
 };
コード例 #2
0
//@SuppressWarnings("unused")
//@CalledByNative
void SystemMessageHandler::ScheduleWork()
{
    SendEmptyMessage(SCHEDULED_WORK);
}
コード例 #3
0
ファイル: coap.hpp プロジェクト: abtink/openthread
 /**
  * This method sends a CoAP reset message.
  *
  * @param[in]  aRequest        A reference to the CoAP Message that was used in CoAP request.
  * @param[in]  aMessageInfo    The message info corresponding to the CoAP request.
  *
  * @retval OT_ERROR_NONE          Successfully enqueued the CoAP response message.
  * @retval OT_ERROR_NO_BUFS       Insufficient buffers available to send the CoAP response.
  * @retval OT_ERROR_INVALID_ARGS  The @p aRequest is not of confirmable type.
  *
  */
 otError SendReset(Message &aRequest, const Ip6::MessageInfo &aMessageInfo)
 {
     return SendEmptyMessage(OT_COAP_TYPE_RESET, aRequest, aMessageInfo);
 };
コード例 #4
0
//@SuppressWarnings("unused")
//@CalledByNative
void SystemMessageHandler::ScheduleWork()
{
    Boolean res;
    SendEmptyMessage(SCHEDULED_WORK, &res);
}