21 #ifndef OC_CLIENT_STATE_H
22 #define OC_CLIENT_STATE_H
24 #include "messaging/coap/constants.h"
26 #include "messaging/coap/oscore_constants.h"
100 oc_discovery_handler_t
131 uint8_t piv[OSCORE_PIV_LEN];
133 uint64_t notification_num;
149 oc_blockwise_state_t **response_state,
CoAP block wise transfer implementation.
oc_qos_t
Quality of Service.
@ HIGH_QOS
confirmable messages
@ LOW_QOS
non-confirmable messages
oc_discovery_flags_t oc_ri_process_discovery_payload(uint8_t *payload, int len, oc_client_handler_t handler, oc_endpoint_t *endpoint, oc_content_format_t content, void *user_data)
handle the discovery payload (e.g.
oc_client_cb_t * oc_ri_find_client_cb_by_mid(uint16_t mid)
find the client callback info by message id (mid)
bool oc_ri_is_client_cb_valid(oc_client_cb_t *client_cb)
is the client callback information valid
void oc_ri_free_client_cbs_by_endpoint(oc_endpoint_t *endpoint)
free the client callback information by endpoint
oc_discovery_flags_t(* oc_discovery_all_handler_t)(const char *, int len, oc_endpoint_t *endpoint, void *)
discovery_all handler
struct oc_client_cb_t oc_client_cb_t
client callback information
bool oc_ri_invoke_client_cb(void *response, oc_blockwise_state_t **response_state, oc_client_cb_t *cb, oc_endpoint_t *endpoint)
invoke the Client callback when a response is received
oc_client_cb_t * oc_ri_find_client_cb_by_token(uint8_t *token, uint8_t token_len)
find the client callback info by token
struct oc_client_handler_t oc_client_handler_t
client handler information
oc_discovery_flags_t
discovery flags
@ OC_CONTINUE_DISCOVERY
continue discovering (more data)
@ OC_STOP_DISCOVERY
stop discovering (also no more data)
oc_client_cb_t * oc_ri_alloc_client_cb(const char *uri, oc_endpoint_t *endpoint, oc_method_t method, const char *query, oc_client_handler_t handler, oc_qos_t qos, void *user_data)
allocate the client callback information
void(* oc_response_handler_t)(oc_client_response_t *)
client response handler
void oc_ri_free_client_cbs_by_mid(uint16_t mid)
free the client callback information by message id (mid)
oc_client_cb_t * oc_ri_get_client_cb(const char *uri, oc_endpoint_t *endpoint, oc_method_t method)
retrieve the client callback information
end point implementation, e.g.
oc_status_t
CoAP status codes.
oc_content_format_t
payload content formats
oc_interface_mask_t
interface masks security access scopes defined as interfaces note that scope = 1 is not used.
oc_resource_properties_t
resource properties (bit mask)
client callback information
void * user_data
user data for the callbacks
bool discovery
discovery call
uint8_t token[COAP_TOKEN_LEN]
CoAP token.
oc_client_handler_t handler
handler information
oc_string_t query
query parameters
oc_endpoint_t endpoint
endpoint
struct oc_client_cb_t * next
pointer next callback information
oc_clock_time_t timestamp
time stamp
uint8_t separate
separate responses
uint8_t ref_count
reference counting on this data block
int32_t observe_seq
observe sequence number
uint16_t mid
CoAP message identifier.
oc_method_t method
method used
uint8_t token_len
CoAP token length.
oc_qos_t qos
quality of service
bool stop_multicast_receive
stop receiving multi cast
client handler information
oc_discovery_handler_t discovery
discovery handler, e.g.
oc_response_handler_t response
response handler
oc_discovery_all_handler_t discovery_all
discovery all handler, full payload
Client response information.
int observe_option
observe indication
void * user_data
user data to be supplied to the callback to the client
oc_rep_t * payload
response payload, interpreted as cbor
oc_content_format_t content_format
content format of the payload
oc_endpoint_t * endpoint
endpoint on where the response has been received
oc_status_t code
status of the response
const uint8_t * _payload
payload buffer
size_t _payload_len
payload buffer length
void * client_cb
callback for the response to the calling client
parsed entry of a cbor object This represents a link list of response values one can iterate over the...