Lines Matching refs:token
116 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) {
568 s->token_length = token->length;
569 memcpy(s->token, token->s, min(s->token_length, 8));
580 const str *token) { argument
584 s = coap_find_observer(r, observer, token);
593 const str *token) { argument
596 s = coap_find_observer(resource, observer, token);
611 str token; local
638 if (!coap_add_token(response, obs->token_length, obs->token)) {
646 token.length = obs->token_length;
647 token.s = obs->token;
657 h(context, r, &obs->local_if, &obs->subscriber, NULL, &token, response);
709 const str *token) { argument
714 token->length == obs->token_length &&
715 memcmp(token->s, obs->token, token->length) == 0) {
737 obs->token, obs->token_length);
749 const str *token) { argument
752 coap_remove_failed_observers(context, r, peer, token);