Home
last modified time | relevance | path

Searched refs:databuf (Results 1 – 2 of 2) sorted by relevance

/net-tools-3.7.0/
Dcoap-client.c1213 unsigned char *databuf; in read_blocks() local
1218 if (coap_get_data(received, &len, &databuf)) in read_blocks()
1219 printf("Received: databuf %p len %zu\n", databuf, len); in read_blocks()
1278 static bool check_mid(const unsigned char *databuf, int len, in check_mid() argument
1285 if (!memcmp(databuf, buf, strlen(buf))) in check_mid()
1289 len, databuf); in check_mid()
1298 unsigned char *databuf; in receive_data() local
1300 if (coap_get_data(received, &len, &databuf)) { in receive_data()
1305 !check_mid(databuf, len, test_context->index)) { in receive_data()
1346 unsigned char *databuf; in coap_message_handler() local
[all …]
/net-tools-3.7.0/libcoap/examples/
Dclient.c328 unsigned char *databuf; in message_handler() local
369 if (coap_get_data(received, &len, &databuf)) in message_handler()
370 append_to_output(databuf, len); in message_handler()
499 if (coap_get_data(received, &len, &databuf)) in message_handler()
500 append_to_output(databuf, len); in message_handler()
509 if (coap_get_data(received, &len, &databuf)) { in message_handler()
512 fprintf(stderr, "%c", *databuf++); in message_handler()