Lines Matching defs:pdu
703 coap_show_pdu(coap_log_t level, const coap_pdu_t *pdu) {
735 if (!pdu->session || COAP_PROTO_NOT_RELIABLE(pdu->session->proto)) {
737 COAP_DEFAULT_VERSION, msg_type_string(pdu->type),
738 msg_code_string(pdu->code), pdu->mid);
739 } else if (pdu->session->proto == COAP_PROTO_WS ||
740 pdu->session->proto == COAP_PROTO_WSS) {
741 if (pdu->type != COAP_MESSAGE_CON)
744 msg_code_string(pdu->code));
746 if (pdu->type != COAP_MESSAGE_CON)
749 msg_code_string(pdu->code));
752 for (i = 0; i < pdu->actual_token.length; i++) {
755 "%02x", pdu->actual_token.s[i]);
761 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL);
774 if (pdu->code == COAP_SIGNALING_CODE_CSM) {
786 } else if (pdu->code == COAP_SIGNALING_CODE_PING ||
787 pdu->code == COAP_SIGNALING_CODE_PONG) {
789 } else if (pdu->code == COAP_SIGNALING_CODE_RELEASE) {
805 } else if (pdu->code == COAP_SIGNALING_CODE_ABORT) {
833 if (coap_get_data(pdu, &data_len, &data))
965 " %s:%.*s", msg_option_string(pdu->code, opt_iter.number),
972 if (coap_get_data(pdu, &data_len, &data)) {