Home
last modified time | relevance | path

Searched refs:num (Results 1 – 14 of 14) sorted by relevance

/net-tools-3.6.0/libcoap/src/
Dblock.c27 unsigned int num = 0; in coap_opt_block_num() local
37 num = coap_decode_var_bytes(COAP_OPT_VALUE(block_opt), in coap_opt_block_num()
41 return (num << 4) | ((*COAP_OPT_BLOCK_LAST(block_opt) & 0xF0) >> 4); in coap_opt_block_num()
56 block->num = coap_opt_block_num(option); in coap_get_block()
71 start = block->num << (block->szx + 4); in coap_write_block_opt()
105 block->num <<= szx - block->szx; in coap_write_block_opt()
110 coap_add_option(pdu, type, coap_encode_var_bytes(buf, ((block->num << 4) | in coap_write_block_opt()
Dnet.c1188 offset = block.num << (block.szx + 4); in coap_wellknown_response()
1194 block.num = offset >> (block.szx + 4); in coap_wellknown_response()
1222 block.num = 0; in coap_wellknown_response()
/net-tools-3.6.0/libcoap/include/coap/
Dblock.h34 unsigned int num; /**< block number */ member
65 coap_more_blocks(size_t data_len, unsigned int num, unsigned short szx) { in coap_more_blocks() argument
66 return ((num+1) << (szx + 4)) < data_len; in coap_more_blocks()
/net-tools-3.6.0/libcoap/tests/
Dtest_wellknown.c171 CU_ASSERT(block.num == 0); in t_wellknown4()
185 coap_block_t inblock = { .num = 1, .m = 0, .szx = 1 }; in t_wellknown5()
190 coap_encode_var_bytes(buf, ((inblock.num << 4) | in t_wellknown5()
203 CU_ASSERT(block.num == inblock.num); in t_wellknown5()
214 coap_block_t block = { .num = 0, .szx = 6 }; in t_wellknown6()
229 ((block.num << 4) | block.szx)), buf)) { in t_wellknown6()
242 block.num++; in t_wellknown6()
Dtest_sendqueue.c30 add_timestamps(coap_queue_t *queue, size_t num) { in add_timestamps() argument
32 while (queue && num--) { in add_timestamps()
/net-tools-3.6.0/libcoap/examples/
Dcoap-client.txt.in17 *coap-client* [*-A* type1, _type2_ ,...] [*-t* type] [*-b* [num,]size]
20 [*-O* num,text] [*-T* token] [*-v* num] [*-a* addr] URI
37 *-b* [num,]size::
40 PDU size of 1400 bytes). If 'num' is present, the request
41 chain will start at block 'num'. When the server includes a Block2
81 *-v* num::
98 *-O* num,text::
99 Add option 'num' with contents of 'text' to the request.
Dclient.c56 coap_block_t block = { .num = 0, .m = 0, .szx = 6 };
171 coap_add_block(pdu, length, data, block.num, block.szx); in coap_new_request()
430 block.num = coap_opt_block_num(block_opt); in message_handler()
433 block.szx, block.num); in message_handler()
435 if (payload.length <= (block.num+1) * (1 << (block.szx + 4))) { in message_handler()
466 block.num++; in message_handler()
467 block.m = ((block.num+1) * (1 << (block.szx + 4)) < payload.length); in message_handler()
469 debug("send block %d\n", block.num); in message_handler()
473 (block.num << 4) | (block.m << 3) | block.szx), buf); in message_handler()
478 block.num, in message_handler()
[all …]
Dcoap-rd.txt.in17 *coap-rd* [*-A* addr] [*-g* group] [*-p* port] [*-v* num]
36 *-v* num::
Dcoap-server.txt.in17 *coap-server* [*-A* addr] [*-g* group] [*-p* port] [*-v* num]
36 *-v* num::
Detsi_iot_01.c196 block.num, block.szx); in hnd_get_resource()
206 block.num, block.szx); in hnd_get_resource()
/net-tools-3.6.0/tinydtls-0.8.2/sha2/
Dsha2test.pl257 $num = $errors = $error256 = $error384 = $error512 = $tests = $test256 = $test384 = $test512 = 0;
259 $num++;
260 print "TEST VECTOR #$num:\n";
339 print "\n\n===== RESULTS ($num VECTOR DATA FILES HASHED) =====\n\n";
/net-tools-3.6.0/virtual-hub/src/
Dgraphs.c79 float num; in read_csv() local
/net-tools-3.6.0/
Dcoap-client.c148 .num = 0,
1198 block.num, block.szx); in coap_new_request()
1394 block.num = coap_opt_block_num(block_opt); in coap_message_handler()
1398 block.szx, block.num); in coap_message_handler()
1400 if (payload.length <= (block.num+1) * in coap_message_handler()
1414 block.num++; in coap_message_handler()
1415 block.m = ((block.num+1) * in coap_message_handler()
1419 debug("send block %d\n", block.num); in coap_message_handler()
1423 (block.num << 4) | in coap_message_handler()
1430 block.num, in coap_message_handler()
[all …]
/net-tools-3.6.0/python-websocket-server/websocket_server/
Dwebsocket_server.py183 def read_bytes(self, num): argument
185 bytes = self.rfile.read(num)