Lines Matching refs:context

162 coap_print_wellknown(coap_context_t *context, unsigned char *buf, size_t *buflen,  argument
167 coap_print_wellknown(coap_context_t *context, unsigned char *buf, size_t *buflen,
233 RESOURCES_ITER(context->resources, r) {
399 coap_add_resource(coap_context_t *context, coap_resource_t *resource) { argument
400 RESOURCES_ADD(context->resources, resource);
428 coap_delete_resource(coap_context_t *context, coap_key_t key) { argument
431 if (!context)
434 resource = coap_get_resource_from_key(context, key);
440 RESOURCES_DELETE(context->resources, resource);
449 coap_delete_all_resources(coap_context_t *context) { argument
457 LL_FOREACH_SAFE(context->resources, res, rtmp) {
459 HASH_ITER(hh, context->resources, res, rtmp) {
464 context->resources = NULL;
468 coap_get_resource_from_key(coap_context_t *context, coap_key_t key) { argument
471 RESOURCES_FIND(context->resources, key, result);
579 coap_touch_observer(coap_context_t *context, const coap_address_t *observer, argument
583 RESOURCES_ITER(context->resources, r) {
608 coap_notify_observers(coap_context_t *context, coap_resource_t *r) { argument
649 response->hdr->id = coap_new_message_id(context);
657 h(context, r, &obs->local_if, &obs->subscriber, NULL, &token, response);
663 tid = coap_send_confirmed(context, &obs->local_if, &obs->subscriber, response);
666 tid = coap_send(context, &obs->local_if, &obs->subscriber, response);
682 context->observe++;
688 coap_check_notify(coap_context_t *context) { argument
690 RESOURCES_ITER(context->resources, r) {
691 coap_notify_observers(context, r);
706 coap_remove_failed_observers(coap_context_t *context, argument
736 coap_cancel_all_messages(context, &obs->subscriber,
747 coap_handle_failed_notify(coap_context_t *context, argument
751 RESOURCES_ITER(context->resources, r) {
752 coap_remove_failed_observers(context, r, peer, token);