Loading...
Searching...
No Matches
gcoap_request_memo Struct Reference

Memo to handle a response for a request. More...

Detailed Description

Memo to handle a response for a request.

Definition at line 809 of file gcoap.h.

#include <gcoap.h>

Data Fields

unsigned state
 State of this memo, a GCOAP_MEMO...
 
int send_limit
 Remaining resends, 0 if none; GCOAP_SEND_LIMIT_NON if non-confirmable.
 
union { 
 
   uint8_t   hdr_buf [GCOAP_HEADER_MAXLEN
 Copy of PDU header, if no resends. More...
 
   gcoap_resend_t   data 
 Endpoint and PDU buffer, for resend. More...
 
msg 
 Request message data; if confirmable, supports resending message.
 
sock_udp_ep_t remote_ep
 Remote endpoint.
 
gcoap_resp_handler_t resp_handler
 Callback for the response.
 
void * context
 ptr to user defined context data
 
event_timeout_t resp_evt_tmout
 Limits wait for response.
 
event_callback_t resp_tmout_cb
 Callback for response timeout.
 
gcoap_socket_t socket
 Transport type to remote endpoint.
 
uint8_t cache_key [CONFIG_NANOCOAP_CACHE_KEY_LENGTH]
 Cache key for the request.
 

Field Documentation

◆ cache_key

uint8_t gcoap_request_memo::cache_key[CONFIG_NANOCOAP_CACHE_KEY_LENGTH]

Cache key for the request.

Note
Only available with module 'nanocoap_cache'

Definition at line 831 of file gcoap.h.

◆ context

void* gcoap_request_memo::context

ptr to user defined context data

Definition at line 821 of file gcoap.h.

◆ data

gcoap_resend_t gcoap_request_memo::data

Endpoint and PDU buffer, for resend.

Definition at line 816 of file gcoap.h.

◆ hdr_buf

uint8_t gcoap_request_memo::hdr_buf[GCOAP_HEADER_MAXLEN]

Copy of PDU header, if no resends.

Definition at line 814 of file gcoap.h.

◆ remote_ep

sock_udp_ep_t gcoap_request_memo::remote_ep

Remote endpoint.

Definition at line 819 of file gcoap.h.

◆ resp_evt_tmout

event_timeout_t gcoap_request_memo::resp_evt_tmout

Limits wait for response.

Definition at line 822 of file gcoap.h.

◆ resp_handler

gcoap_resp_handler_t gcoap_request_memo::resp_handler

Callback for the response.

Definition at line 820 of file gcoap.h.

◆ resp_tmout_cb

event_callback_t gcoap_request_memo::resp_tmout_cb

Callback for response timeout.

Definition at line 823 of file gcoap.h.

◆ send_limit

int gcoap_request_memo::send_limit

Remaining resends, 0 if none; GCOAP_SEND_LIMIT_NON if non-confirmable.

Definition at line 811 of file gcoap.h.

◆ socket

gcoap_socket_t gcoap_request_memo::socket

Transport type to remote endpoint.

Definition at line 824 of file gcoap.h.

◆ state

unsigned gcoap_request_memo::state

State of this memo, a GCOAP_MEMO...

Definition at line 810 of file gcoap.h.


The documentation for this struct was generated from the following file: