Home
last modified time | relevance | path

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

/net-tools-3.5.0/libcoap/src/
Dasync.c25 coap_pdu_t *request, unsigned char flags, void *data) { in coap_register_async() argument
29 coap_transaction_id(peer, request, &id); in coap_register_async()
41 request->hdr->token_length); in coap_register_async()
47 memset(s, 0, sizeof(coap_async_state_t) + request->hdr->token_length); in coap_register_async()
51 if (request->hdr->type == COAP_MESSAGE_CON) in coap_register_async()
58 if (request->hdr->token_length) { in coap_register_async()
59 s->tokenlen = request->hdr->token_length; in coap_register_async()
60 memcpy(s->token, request->hdr->token, request->hdr->token_length); in coap_register_async()
Dnet.c537 coap_pdu_t *request) { in coap_send_ack() argument
541 if (request && request->hdr->type == COAP_MESSAGE_CON) { in coap_send_ack()
542 response = coap_pdu_init(COAP_MESSAGE_ACK, 0, request->hdr->id, in coap_send_ack()
625 coap_pdu_t *request, in coap_send_error() argument
633 assert(request); in coap_send_error()
636 response = coap_new_error_response(request, code, opts); in coap_send_error()
649 coap_pdu_t *request, in coap_send_message_type() argument
654 if (request) { in coap_send_message_type()
655 response = coap_pdu_init(type, 0, request->hdr->id, sizeof(coap_pdu_t)); in coap_send_message_type()
1032 coap_new_error_response(coap_pdu_t *request, unsigned char code, in coap_new_error_response() argument
[all …]
Dresource.c383 coap_hash_request_uri(const coap_pdu_t *request, coap_key_t key) { argument
393 coap_option_iterator_init((coap_pdu_t *)request, &opt_iter, filter);
/net-tools-3.5.0/libcoap/examples/contiki/
Dcoap-observer.c114 coap_pdu_t *request; in PROCESS_THREAD() local
134 request = coap_pdu_init(COAP_MESSAGE_CON, COAP_REQUEST_GET, in PROCESS_THREAD()
142 coap_add_option(request, COAP_OPTION_URI_PORT, in PROCESS_THREAD()
158 coap_add_option(request, COAP_OPTION_URI_PATH, in PROCESS_THREAD()
165 coap_add_option(request, COAP_OPTION_SUBSCRIPTION, 0, NULL); in PROCESS_THREAD()
169 coap_add_option(request, COAP_OPTION_TOKEN, 2, buf); in PROCESS_THREAD()
172 if (COAP_INVALID_TID == coap_send_confirmed(coap_context, &dst, request)) in PROCESS_THREAD()
173 coap_delete_pdu(request); in PROCESS_THREAD()
Dserver.c94 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_time() argument
129 if (request != NULL in hnd_get_time()
130 && (option = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter)) in hnd_get_time()
/net-tools-3.5.0/libcoap/include/coap/
Dnet.h243 coap_pdu_t *coap_new_error_response(coap_pdu_t *request,
285 coap_pdu_t *request,
309 coap_pdu_t *request,
329 coap_pdu_t *request);
349 coap_pdu_t *request) { in coap_send_rst() argument
352 dst, request, in coap_send_rst()
519 coap_pdu_t *request);
Dasync.h87 coap_pdu_t *request,
Dresource.h275 void coap_hash_request_uri(const coap_pdu_t *request, coap_key_t key);
/net-tools-3.5.0/libcoap/examples/
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
174 if (request) { in hnd_get_resource()
177 if (coap_get_block(request, COAP_OPTION_BLOCK2, &block)) { in hnd_get_resource()
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
256 coap_get_data(request, &len, &data); in hnd_post_test()
280 option = coap_check_option(request, COAP_OPTION_CONTENT_TYPE, &opt_iter); in hnd_post_test()
306 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_put_test() argument
316 coap_get_data(request, &len, &data); in hnd_put_test()
[all …]
Dcoap-rd.c100 coap_pdu_t *request UNUSED_PARAM, in hnd_get_resource()
128 coap_pdu_t *request UNUSED_PARAM, in hnd_put_resource()
138 int type = (request->hdr->type == COAP_MESSAGE_CON) in hnd_put_resource()
148 etag = coap_check_option(request, COAP_OPTION_ETAG, &opt_iter); in hnd_put_resource()
152 if (coap_get_data(request, &tmp.length, &data)) { in hnd_put_resource()
183 response = coap_pdu_init(type, code, request->hdr->id, size); in hnd_put_resource()
186 debug("cannot create response for message %d\n", request->hdr->id); in hnd_put_resource()
190 if (request->hdr->token_length) in hnd_put_resource()
191 coap_add_token(response, request->hdr->token_length, request->hdr->token); in hnd_put_resource()
195 request->hdr->id); in hnd_put_resource()
[all …]
Dcoap-server.c73 coap_pdu_t *request UNUSED_PARAM, in hnd_get_index()
96 coap_pdu_t *request, in hnd_get_time() argument
135 if (request != NULL in hnd_get_time()
136 && (option = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter)) in hnd_get_time()
163 coap_pdu_t *request, in hnd_put_time() argument
181 coap_get_data(request, &size, &data); in hnd_put_time()
199 coap_pdu_t *request UNUSED_PARAM, in hnd_delete_time()
214 coap_pdu_t *request, in hnd_get_async() argument
223 if (async->id != request->hdr->id) { in hnd_get_async()
231 option = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter); in hnd_get_async()
[all …]
DREADME.etsi_iot23 [+] TD_COAP_CORE_10 Handle request containing Token option
24 [+] TD_COAP_CORE_11 Handle request not containing Token option
25 [+] TD_COAP_CORE_12 Handle request containing several Uri-Path options
26 [+] TD_COAP_CORE_13 Handle request containing several Uri-Query options
Dcoap-client.txt.in40 PDU size of 1400 bytes). If 'num' is present, the request
42 option in its response to a GET request, coap-client will automatically
53 The request method for action (get|put|post|delete), default is 'get'.
99 Add option 'num' with contents of 'text' to the request.
103 to request).
106 Include the 'token' to the request.
/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_memory_buffer_alloc.function136 /* Once blocks are reallocated, the block allocated to the memory request
137 * may be bigger than the request itself, which is indicated by the reported
/net-tools-3.5.0/python-websocket-server/websocket_server/
Dwebsocket_server.py296 self.request.send(header + payload)
329 self.handshake_done = self.request.send(response.encode())
/net-tools-3.5.0/mbedtls-2.4.0/yotta/data/
DREADME.md92 …his, which we will send to you in case you submit a contribution or pull request that we deem this…
102 * Send a pull request and bug us until it gets merged and published. We will include your name in t…
/net-tools-3.5.0/mbedtls-2.4.0/
DREADME.md175 4. Send a pull request and bug us until it gets merged and published. Contributions may need some …
DChangeLog526 * Add support for bit strings in X.509 names (request by Fredrik Axelsson).