Home
last modified time | relevance | path

Searched refs:COAP_OPTION_BLOCK2 (Results 1 – 7 of 7) sorted by relevance

/net-tools-latest/libcoap/tests/
Dtest_wellknown.c169 CU_ASSERT(coap_get_block(response, COAP_OPTION_BLOCK2, &block) != 0); in t_wellknown4()
189 if (!coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown5()
201 CU_ASSERT(coap_get_block(response, COAP_OPTION_BLOCK2, &block) != 0); in t_wellknown5()
227 if (!pdu || !coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown6()
240 CU_ASSERT(coap_get_block(response, COAP_OPTION_BLOCK2, &block) != 0); in t_wellknown6()
/net-tools-latest/libcoap/examples/
Detsi_iot_01.c177 if (coap_get_block(request, COAP_OPTION_BLOCK2, &block)) { in hnd_get_resource()
178 res = coap_write_block_opt(&block, COAP_OPTION_BLOCK2, response, in hnd_get_resource()
202 coap_write_block_opt(&block, COAP_OPTION_BLOCK2, response, in hnd_get_resource()
710 coap_register_option(ctx, COAP_OPTION_BLOCK2); in main()
Dclient.c364 block_opt = coap_check_option(received, COAP_OPTION_BLOCK2, &opt_iter); in message_handler()
760 opt = method == COAP_REQUEST_GET ? COAP_OPTION_BLOCK2 : COAP_OPTION_BLOCK1; in set_blocksize()
1167 coap_register_option(ctx, COAP_OPTION_BLOCK2); in main()
/net-tools-latest/libcoap/include/coap/
Dpdu.h81 #define COAP_OPTION_BLOCK2 23 /* C, uint, 0--3 B, (none) */ macro
/net-tools-latest/libcoap/src/
Ddebug.c306 { COAP_OPTION_BLOCK2, "Block2" }, in msg_option_string()
414 case COAP_OPTION_BLOCK2: in coap_show_pdu()
Dnet.c473 case COAP_OPTION_BLOCK2: in coap_option_check_critical()
1186 if (coap_get_block(request, COAP_OPTION_BLOCK2, &block)) { in coap_wellknown_response()
1239 if (coap_write_block_opt(&block, COAP_OPTION_BLOCK2, resp, wkc_len) < 0) { in coap_wellknown_response()
/net-tools-latest/
Dcoap-client.c1272 coap_option_setb(f, COAP_OPTION_BLOCK2); in get_block()
1492 opt = method == COAP_REQUEST_GET ? COAP_OPTION_BLOCK2 : in set_blocksize()
1755 coap_register_option(coap_ctx, COAP_OPTION_BLOCK2);