Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 18 of 18) sorted by relevance

/net-tools-3.7.0/libcoap/src/
Dresource.c314 coap_add_attr(coap_resource_t *resource, argument
320 if (!resource || !name)
340 LL_PREPEND(resource->link_attr, attr);
349 coap_find_attr(coap_resource_t *resource, argument
353 if (!resource || !name)
356 LL_FOREACH(resource->link_attr, attr) {
399 coap_add_resource(coap_context_t *context, coap_resource_t *resource) { argument
400 RESOURCES_ADD(context->resources, resource);
404 coap_free_resource(coap_resource_t *resource) { argument
408 assert(resource);
[all …]
Dnet.c1359 coap_resource_t *resource; in handle_request() local
1366 resource = coap_get_resource_from_key(context, key); in handle_request()
1368 if (!resource) { in handle_request()
1410 sizeof(resource->handler)/sizeof(coap_method_handler_t)) in handle_request()
1411 h = resource->handler[node->pdu->hdr->code - 1]; in handle_request()
1431 if (resource->observable) { in handle_request()
1442 subscription = coap_add_observer(resource, &node->local_if, in handle_request()
1451 h(context, resource, &node->local_if, &node->remote, in handle_request()
1458 coap_delete_observer(resource, &node->remote, &token); in handle_request()
/net-tools-3.7.0/libcoap/include/coap/
Dresource.h131 void coap_add_resource(coap_context_t *context, coap_resource_t *resource);
168 coap_attr_t *coap_add_attr(coap_resource_t *resource,
185 coap_attr_t *coap_find_attr(coap_resource_t *resource,
234 coap_print_status_t coap_print_link(const coap_resource_t *resource,
248 coap_register_handler(coap_resource_t *resource, in coap_register_handler() argument
251 assert(resource); in coap_register_handler()
252 …assert(method > 0 && (size_t)(method-1) < sizeof(resource->handler)/sizeof(coap_method_handler_t)); in coap_register_handler()
253 resource->handler[method-1] = handler; in coap_register_handler()
295 coap_subscription_t *coap_add_observer(coap_resource_t *resource,
309 coap_subscription_t *coap_find_observer(coap_resource_t *resource,
[all …]
Dcoap.h.in48 #include "resource.h"
/net-tools-3.7.0/libcoap/examples/
DREADME.etsi_iot32 [ ] TD_COAP_LINK_01 Access to well-known interface for resource discovery
34 [+] TD_COAP_BLOCK_01 Handle GET blockwise transfer for large resource (early negotiation)
35 [+] TD_COAP_BLOCK_02 Handle GET blockwise transfer for large resource (late negotiation)
36 [-] TD_COAP_BLOCK_03 Handle PUT blockwise transfer for large resource
37 [-] TD_COAP_BLOCK_04 Handle POST blockwise transfer for large resource
38 [-] TD_COAP_OBS_01 Handle resource observation
39 [-] TD_COAP_OBS_02 Stop resource observation
Detsi_iot_01.c129 hnd_get_index(coap_context_t *ctx, struct coap_resource_t *resource, in hnd_get_index() argument
147 hnd_get_resource(coap_context_t *ctx, struct coap_resource_t *resource, in hnd_get_resource() argument
155 test_payload = coap_find_payload(resource->key); in hnd_get_resource()
223 hnd_delete_resource(coap_context_t *ctx, struct coap_resource_t *resource, in hnd_delete_resource() argument
228 payload = coap_find_payload(resource->key); in hnd_delete_resource()
233 coap_delete_resource(ctx, resource->key); in hnd_delete_resource()
239 hnd_post_test(coap_context_t *ctx, struct coap_resource_t *resource, in hnd_post_test() argument
305 hnd_put_test(coap_context_t *ctx, struct coap_resource_t *resource, in hnd_put_test() argument
318 payload = coap_find_payload(resource->key); in hnd_put_test()
331 coap_add_payload(resource->key, payload, NULL); in hnd_put_test()
[all …]
Dcoap-rd.c97 struct coap_resource_t *resource, in hnd_get_resource() argument
106 HASH_FIND(hh, resources, resource->key, sizeof(coap_key_t), rd); in hnd_get_resource()
125 struct coap_resource_t *resource UNUSED_PARAM, in hnd_put_resource()
145 HASH_FIND(hh, resources, resource->key, sizeof(coap_key_t), rd); in hnd_put_resource()
203 struct coap_resource_t *resource, in hnd_delete_resource() argument
211 HASH_FIND(hh, resources, resource->key, sizeof(coap_key_t), rd); in hnd_delete_resource()
218 coap_delete_resource(ctx, resource->key); in hnd_delete_resource()
225 struct coap_resource_t *resource UNUSED_PARAM, in hnd_get_rd()
294 add_source_address(struct coap_resource_t *resource, in add_source_address() argument
345 coap_add_attr(resource, in add_source_address()
[all …]
Dcoap-server.c70 struct coap_resource_t *resource UNUSED_PARAM, in hnd_get_index()
93 struct coap_resource_t *resource, in hnd_get_time() argument
113 if (coap_find_observer(resource, peer, token)) { in hnd_get_time()
160 struct coap_resource_t *resource UNUSED_PARAM, in hnd_put_time()
179 resource->dirty = 1; in hnd_put_time()
196 struct coap_resource_t *resource UNUSED_PARAM, in hnd_delete_time()
211 struct coap_resource_t *resource UNUSED_PARAM, in hnd_get_async()
Dcoap-client.txt.in63 Subscribe to the resource specified by URI for the given 'duration' in
67 Content format for given resource for PUT/POST. 'type' must be either
114 Query resource '/' from server 'coap.me' (via the GET method).
126 Quite the same, except on the resource '.well-known/core' on localhost.
133 Send text 'mode=on' to resource 'actuators/leds?color=r' on the endpoint with
142 application/octet-stream) into resource 'ck' on 'fec0::3' by usage of a token
Dcoap-rd.txt.in21 *coap-rd* is a simple CoAP Resource Directory server that can handle resource
/net-tools-3.7.0/libcoap/
DChangeLog9 * include/coap/resource.h: Replaced custom list structures by
64 * resource.c (coap_print_link): This function now takes an offset
77 * resource.c (coap_print_link): Output partial resource
79 textual representation of the resource. Output starts at the given
82 the resource description has been truncated at the buffer's upper
86 resource description. The meaning of the return value has been
179 * resource.c (print_wellknown): filtering by attributes
215 * resource.h: (coap_method_handler_t): new API for method handlers.
DMakefile.libcoap1 libcoap_src = pdu.c net.c debug.c encode.c uri.c subscribe.c resource.c hashkey.c str.c option.c as…
DMakefile.am63 src/resource.c \
90 include/coap/resource.h \
DTODO42 include/coap/resource.h
/net-tools-3.7.0/libcoap/examples/contiki/
Dcoap-observer.c47 static char resource[] = "/s/light"; variable
138 coap_split_uri((unsigned char *)resource, strlen(resource), &uri); in PROCESS_THREAD()
Dserver.c92 hnd_get_time(coap_context_t *ctx, struct coap_resource_t *resource, in hnd_get_time() argument
110 if (coap_find_observer(resource, peer, token)) { in hnd_get_time()
DMakefile.common11 COAPOBJS = net.o debug.o option.o resource.o hashkey.o pdu.o encode.o subscribe.o coap_io.o block.o…
/net-tools-3.7.0/mbedtls-2.4.0/configs/
DREADME.txt4 a restricted number of ciphersuites) and aim at minimizing resource usage for