Home
last modified time | relevance | path

Searched refs:token (Results 1 – 20 of 20) sorted by relevance

/net-tools-3.5.0/libcoap/src/
Dresource.c116 unsigned char *token = next_token; in match() local
117 next_token = memchr(token, ' ', remaining_length); in match()
120 token_length = next_token - token; in match()
129 memcmp(token, pattern->s, pattern->length) == 0) in match()
524 const str *token) { argument
532 && (!token || (token->length == s->token_length
533 && memcmp(token->s, s->token, token->length) == 0)))
544 const str *token) { argument
550 s = coap_find_observer(resource, observer, token);
567 if (token && token->length) {
[all …]
Dnet.c806 str token = { 0, NULL }; in coap_retransmit() local
808 token.length = node->pdu->hdr->token_length; in coap_retransmit()
809 token.s = node->pdu->hdr->token; in coap_retransmit()
811 coap_handle_failed_notify(context, &node->remote, &token); in coap_retransmit()
985 const unsigned char *token, size_t token_length) { in coap_cancel_all_messages() argument
992 token_match(token, token_length, in coap_cancel_all_messages()
993 context->sendqueue->pdu->hdr->token, in coap_cancel_all_messages()
1010 token_match(token, token_length, in coap_cancel_all_messages()
1011 q->pdu->hdr->token, q->pdu->hdr->token_length)) { in coap_cancel_all_messages()
1101 request->hdr->token)) { in coap_new_error_response()
[all …]
Dasync.c60 memcpy(s->token, request->hdr->token, request->hdr->token_length); in coap_register_async()
Doption.c28 (pdu->hdr->token + pdu->hdr->token_length in options_start()
31 coap_opt_t *opt = pdu->hdr->token + pdu->hdr->token_length; in options_start()
Dpdu.c161 memcpy(pdu->hdr->token, data, len); in coap_add_token()
Ddebug.c390 fprintf(COAP_DEBUG_FD, "%02x", pdu->hdr->token[i]); in coap_show_pdu()
/net-tools-3.5.0/libcoap/include/coap/
Dresource.h298 const str *token);
311 const str *token);
323 const str *token);
338 const str *token);
Dsubscribe.h65 unsigned char token[8]; /**< token used for subscription */ member
Dpdu.h182 unsigned char token[]; /* the actual token, if any */ member
192 unsigned char token[]; /* the actual token, if any */ member
Dasync.h51 unsigned char token[]; /**< the token to use in a response */ member
Dnet.h454 const unsigned char *token,
/net-tools-3.5.0/libcoap/examples/
Dcoap-server.c74 str *token UNUSED_PARAM, in hnd_get_index()
97 str *token, in hnd_get_time() argument
113 if (coap_find_observer(resource, peer, token)) { in hnd_get_time()
164 str *token UNUSED_PARAM, in hnd_put_time()
200 str *token UNUSED_PARAM, in hnd_delete_time()
215 str *token UNUSED_PARAM, in hnd_get_async()
273 coap_add_token(response, async->tokenlen, async->token); in check_async()
Detsi_iot_01.c130 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_index() argument
148 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_resource() argument
224 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_delete_resource() argument
240 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_post_test() argument
306 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_put_test() argument
357 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_delete_test() argument
373 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_query() argument
411 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_separate() argument
480 coap_add_token(response, async->tokenlen, async->token); in check_async()
Dcoap-rd.c101 str *token UNUSED_PARAM, in hnd_get_resource()
129 str *token UNUSED_PARAM, in hnd_put_resource()
135 coap_opt_t *token, *etag; in hnd_put_resource()
191 coap_add_token(response, request->hdr->token_length, request->hdr->token); in hnd_put_resource()
207 str *token UNUSED_PARAM, in hnd_delete_resource()
229 str *token UNUSED_PARAM, in hnd_get_rd()
393 str *token UNUSED_PARAM, in hnd_post_rd()
Dcoap-client.txt.in20 [*-O* num,text] [*-T* token] [*-v* num] [*-a* addr] URI
105 *-T* token::
106 Include the 'token' to the request.
142 application/octet-stream) into resource 'ck' on 'fec0::3' by usage of a token
Dclient.c311 memcmp(received->hdr->token, the_token.s, the_token.length) == 0; in check_token()
/net-tools-3.5.0/mbedtls-2.4.0/scripts/
Drename.pl65 my $token = $do_strings ? qr/$space|$idnum|$symbols/
98 my @words = ($line =~ /$token/g);
/net-tools-3.5.0/libcoap/examples/contiki/
Dserver.c94 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_time() argument
110 if (coap_find_observer(resource, peer, token)) { in hnd_get_time()
/net-tools-3.5.0/libcoap/tests/
Dtest_pdu.c56 CU_ASSERT(memcmp(pdu->hdr->token, teststr + 4, 5) == 0); in t_parse_pdu2()
102 CU_ASSERT(memcmp(pdu->hdr->token, teststr + 4, 5) == 0); in t_parse_pdu5()
138 CU_ASSERT(memcmp(pdu->hdr->token, teststr + 4, 5) == 0); in t_parse_pdu7()
/net-tools-3.5.0/
Dcoap-client.c1095 memcmp(received->hdr->token, the_token.s, in check_token()