Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 4 of 4) sorted by relevance

/net-tools-3.7.0/tinydtls-0.8.2/tests/
Ddtls-client.c77 size_t bytes_read; in read_from_file() local
78 bytes_read = fread(buf, 1, max_buf_len, f); in read_from_file()
84 buf += bytes_read; in read_from_file()
85 result += bytes_read; in read_from_file()
86 max_buf_len -= bytes_read; in read_from_file()
/net-tools-3.7.0/tinydtls-0.8.2/examples/contiki/
Ddtls-server.c322 if (bytes_read > 0) { in PROCESS_THREAD()
324 read_from_peer(dtls_context, &the_session, readbuf, bytes_read); in PROCESS_THREAD()
326 dtls_handle_message(ctx, &session, uip_appdata, bytes_read); in PROCESS_THREAD()
/net-tools-3.7.0/
Dcoap-client.c880 static int dispatch_data(char *buf, ssize_t bytes_read, in dispatch_data() argument
888 if ((size_t)bytes_read < sizeof(coap_hdr_t)) { in dispatch_data()
902 node->pdu = coap_pdu_init(0, 0, 0, bytes_read); in dispatch_data()
911 if (!coap_pdu_parse((unsigned char *)buf, bytes_read, node->pdu)) { in dispatch_data()
923 (int)bytes_read, addr); in dispatch_data()
/net-tools-3.7.0/libcoap/src/
Dnet.c824 ssize_t bytes_read = -1; in coap_read() local
832 bytes_read = ctx->network_read(ctx->endpoint, &packet); in coap_read()
835 if ( bytes_read < 0 ) { in coap_read()