Lines Matching refs:coap_packet
252 struct coap_packet;
263 struct coap_packet *request,
312 struct coap_packet { struct
350 typedef int (*coap_reply_t)(const struct coap_packet *response,
413 uint8_t coap_header_get_version(const struct coap_packet *cpkt);
422 uint8_t coap_header_get_type(const struct coap_packet *cpkt);
433 uint8_t coap_header_get_token(const struct coap_packet *cpkt, uint8_t *token);
442 uint8_t coap_header_get_code(const struct coap_packet *cpkt);
451 int coap_header_set_code(const struct coap_packet *cpkt, uint8_t code);
460 uint16_t coap_header_get_id(const struct coap_packet *cpkt);
471 const uint8_t *coap_packet_get_payload(const struct coap_packet *cpkt,
504 int coap_packet_parse(struct coap_packet *cpkt, uint8_t *data, uint16_t len,
516 int coap_packet_set_path(struct coap_packet *cpkt, const char *path);
533 int coap_packet_init(struct coap_packet *cpkt, uint8_t *data, uint16_t max_len,
552 int coap_ack_init(struct coap_packet *cpkt, const struct coap_packet *req,
568 int coap_rst_init(struct coap_packet *cpkt, const struct coap_packet *req,
598 int coap_find_options(const struct coap_packet *cpkt, uint16_t code,
615 int coap_packet_append_option(struct coap_packet *cpkt, uint16_t code,
626 int coap_packet_remove_option(struct coap_packet *cpkt, uint16_t code);
653 int coap_append_option_int(struct coap_packet *cpkt, uint16_t code,
663 int coap_packet_append_payload_marker(struct coap_packet *cpkt);
674 int coap_packet_append_payload(struct coap_packet *cpkt, const uint8_t *payload,
685 bool coap_packet_is_request(const struct coap_packet *cpkt);
704 int coap_handle_request_len(struct coap_packet *cpkt,
727 int coap_handle_request(struct coap_packet *cpkt,
823 int coap_append_descriptive_block_option(struct coap_packet *cpkt, struct coap_block_context *ctx);
836 bool coap_has_descriptive_block_option(struct coap_packet *cpkt);
848 int coap_remove_descriptive_block_option(struct coap_packet *cpkt);
857 bool coap_block_has_more(struct coap_packet *cpkt);
868 int coap_append_block1_option(struct coap_packet *cpkt,
880 int coap_append_block2_option(struct coap_packet *cpkt,
892 int coap_append_size1_option(struct coap_packet *cpkt,
904 int coap_append_size2_option(struct coap_packet *cpkt,
916 int coap_get_option_int(const struct coap_packet *cpkt, uint16_t code);
929 int coap_get_block1_option(const struct coap_packet *cpkt, bool *has_more, uint32_t *block_number);
943 int coap_get_block2_option(const struct coap_packet *cpkt, bool *has_more,
955 int coap_update_from_block(const struct coap_packet *cpkt,
970 int coap_next_block_for_option(const struct coap_packet *cpkt,
985 size_t coap_next_block(const struct coap_packet *cpkt,
997 const struct coap_packet *request,
1096 const struct coap_packet *request);
1115 const struct coap_packet *request,
1159 const struct coap_packet *response,
1175 const struct coap_packet *response,
1262 bool coap_request_is_observe(const struct coap_packet *request);