Searched refs:the_token (Results 1 – 2 of 2) sorted by relevance
/net-tools-3.4.0/libcoap/examples/ |
D | client.c | 32 str the_token = { 0, _token_data }; variable 147 pdu->hdr->token_length = the_token.length; in coap_new_request() 148 if ( !coap_add_token(pdu, the_token.length, the_token.s)) { in coap_new_request() 196 if (!coap_add_token(pdu, the_token.length, the_token.s)) { in clear_obs() 310 return received->hdr->token_length == the_token.length && in check_token() 311 memcmp(received->hdr->token, the_token.s, the_token.length) == 0; in check_token() 813 strncpy((char *)the_token.s, arg, min(sizeof(_token_data), strlen(arg))); in cmdline_token() 814 the_token.length = strlen(arg); in cmdline_token()
|
/net-tools-3.4.0/ |
D | coap-client.c | 159 static str the_token = { 0, _token_data }; variable 1094 return received->hdr->token_length == the_token.length && in check_token() 1095 memcmp(received->hdr->token, the_token.s, in check_token() 1096 the_token.length) == 0; in check_token() 1170 pdu->hdr->token_length = the_token.length; in coap_new_request() 1171 if (!coap_add_token(pdu, the_token.length, the_token.s)) { in coap_new_request() 1551 strncpy((char *)the_token.s, arg, min(sizeof(_token_data), in set_token() 1553 the_token.length = strlen(arg); in set_token()
|