Home
last modified time | relevance | path

Searched refs:coap_session_t (Results 1 – 25 of 60) sorted by relevance

123

/third_party/libcoap/include/coap3/
Dcoap_session.h66 coap_session_t *coap_session_reference(coap_session_t *session);
75 void coap_session_release(coap_session_t *session);
84 void coap_session_disconnected(coap_session_t *session,
94 void coap_session_set_app_data(coap_session_t *session, void *data);
105 void *coap_session_get_app_data(const coap_session_t *session);
115 const coap_session_t *session);
125 const coap_session_t *session);
134 coap_proto_t coap_session_get_proto(const coap_session_t *session);
143 coap_session_type_t coap_session_get_type(const coap_session_t *session);
152 coap_session_state_t coap_session_get_state(const coap_session_t *session);
[all …]
Dcoap_dtls_internal.h139 void *coap_dtls_new_client_session(coap_session_t *coap_session);
152 void *coap_dtls_new_server_session(coap_session_t *coap_session);
160 void coap_dtls_free_session(coap_session_t *coap_session);
168 void coap_dtls_session_update_mtu(coap_session_t *coap_session);
180 int coap_dtls_send(coap_session_t *coap_session,
209 coap_tick_t coap_dtls_get_timeout(coap_session_t *coap_session,
217 void coap_dtls_handle_timeout(coap_session_t *coap_session);
229 int coap_dtls_receive(coap_session_t *coap_session,
245 int coap_dtls_hello(coap_session_t *coap_session,
256 unsigned int coap_dtls_get_overhead(coap_session_t *coap_session);
[all …]
Dcoap_session_internal.h48 struct coap_session_t { struct
144 coap_session_t *sessions; /**< hash table or list of active sessions */ argument
152 void coap_session_send_csm(coap_session_t *session);
159 void coap_session_connected(coap_session_t *session);
171 int coap_session_refresh_psk_hint(coap_session_t *session,
184 int coap_session_refresh_psk_key(coap_session_t *session,
195 coap_session_t *coap_new_server_session(
212 ssize_t coap_session_send(coap_session_t *session,
228 ssize_t coap_session_write(coap_session_t *session,
242 ssize_t coap_session_send_pdu(coap_session_t *session, coap_pdu_t *pdu);
[all …]
Dcoap_net_internal.h37 coap_session_t *session; /**< the CoAP session */
69 coap_session_t *sessions; /**< client sessions */
95 ssize_t (*network_send)(coap_socket_t *sock, const coap_session_t *session,
100 size_t(*get_client_psk)(const coap_session_t *session, const uint8_t *hint,
104 size_t(*get_server_psk)(const coap_session_t *session,
107 size_t(*get_server_hint)(const coap_session_t *session, uint8_t *hint,
222 int coap_handle_dgram(coap_context_t *ctx, coap_session_t *session, uint8_t *data, size_t data_len);
241 coap_session_t *session,
246 coap_wait_ack( coap_context_t *context, coap_session_t *session,
259 coap_session_t *session,
[all …]
Dcoap_block_internal.h151 coap_lg_crcv_t * coap_block_new_lg_crcv(coap_session_t *session,
154 void coap_block_delete_lg_crcv(coap_session_t *session,
157 coap_tick_t coap_block_check_lg_crcv_timeouts(coap_session_t *session,
160 void coap_block_delete_lg_srcv(coap_session_t *session,
163 coap_tick_t coap_block_check_lg_srcv_timeouts(coap_session_t *session,
166 int coap_handle_request_send_block(coap_session_t *session,
173 coap_session_t *session,
183 int coap_handle_response_send_block(coap_session_t *session, coap_pdu_t *rcvd);
186 coap_session_t *session,
191 void coap_block_delete_lg_xmit(coap_session_t *session,
[all …]
Dcoap_subscribe_internal.h49 struct coap_session_t *session; /**< subscriber session */
71 coap_session_t *session,
97 coap_session_t *session,
111 coap_session_t *session,
123 coap_session_t *session,
138 coap_session_t *session,
147 void coap_delete_observers(coap_context_t *context, coap_session_t *session);
Dnet.h54 typedef coap_response_t (*coap_response_handler_t)(coap_session_t *session,
67 typedef void (*coap_nack_handler_t)(coap_session_t *session,
79 typedef void (*coap_ping_handler_t)(coap_session_t *session,
90 typedef void (*coap_pong_handler_t)(coap_session_t *session,
337 uint16_t coap_new_message_id(coap_session_t *session);
407 coap_mid_t coap_send_error(coap_session_t *session,
424 coap_send_message_type(coap_session_t *session, const coap_pdu_t *request,
438 coap_mid_t coap_send_ack(coap_session_t *session, const coap_pdu_t *request);
452 coap_send_rst(coap_session_t *session, const coap_pdu_t *request) { in coap_send_rst()
467 coap_mid_t coap_send( coap_session_t *session, coap_pdu_t *pdu );
[all …]
Dcoap_cache.h69 coap_cache_key_t *coap_cache_derive_key(const coap_session_t *session,
99 coap_cache_key_t *coap_cache_derive_key_w_ignore(const coap_session_t *session,
150 coap_cache_entry_t *coap_new_cache_entry(coap_session_t *session,
191 coap_cache_entry_t *coap_cache_get_by_pdu(coap_session_t *session,
Dasync.h56 coap_register_async(coap_session_t *session,
81 coap_free_async(coap_session_t *session, coap_async_t *async);
94 coap_async_t *coap_find_async(coap_session_t *session, coap_bin_const_t token);
Dcoap_io_internal.h35 coap_session_t *session; /* Used by the epoll logic for an active session. */
79 coap_socket_send( coap_socket_t *sock, coap_session_t *session,
93 coap_socket_send_pdu( coap_socket_t *sock, coap_session_t *session,
109 ssize_t coap_network_send( coap_socket_t *sock, const coap_session_t *session, const uint8_t *data,…
Dblock.h197 typedef void (*coap_release_large_data_t)(coap_session_t *session,
240 int coap_add_data_large_request(coap_session_t *session,
297 coap_session_t *session,
343 int coap_cancel_observe(coap_session_t *session, coap_binary_t *token,
Dcoap_dtls.h118 coap_session_t *coap_session,
330 coap_session_t *coap_session,
399 coap_session_t *coap_session,
417 coap_session_t *coap_session,
Dcoap_forward_decls.h98 typedef struct coap_session_t coap_session_t; typedef
/third_party/libcoap/src/
Dcoap_notls.c77 coap_dtls_get_tls(const coap_session_t *c_session COAP_UNUSED, in coap_dtls_get_tls()
106 void *coap_dtls_new_server_session(coap_session_t *session COAP_UNUSED) { in coap_dtls_new_server_session()
110 void *coap_dtls_new_client_session(coap_session_t *session COAP_UNUSED) { in coap_dtls_new_client_session()
114 void coap_dtls_free_session(coap_session_t *coap_session COAP_UNUSED) { in coap_dtls_free_session()
117 void coap_dtls_session_update_mtu(coap_session_t *session COAP_UNUSED) { in coap_dtls_session_update_mtu()
121 coap_dtls_send(coap_session_t *session COAP_UNUSED, in coap_dtls_send()
137 coap_dtls_get_timeout(coap_session_t *session COAP_UNUSED, coap_tick_t now COAP_UNUSED) { in coap_dtls_get_timeout()
141 void coap_dtls_handle_timeout(coap_session_t *session COAP_UNUSED) { in coap_dtls_handle_timeout()
145 coap_dtls_receive(coap_session_t *session COAP_UNUSED, in coap_dtls_receive()
153 coap_dtls_hello(coap_session_t *session COAP_UNUSED, in coap_dtls_hello()
[all …]
Dcoap_session.c33 coap_session_set_max_retransmit (coap_session_t *session, unsigned int value) { in coap_session_set_max_retransmit()
42 coap_session_set_ack_timeout (coap_session_t *session, coap_fixed_point_t value) { in coap_session_set_ack_timeout()
52 coap_session_set_ack_random_factor (coap_session_t *session, in coap_session_set_ack_random_factor()
63 coap_session_get_max_retransmit (const coap_session_t *session) { in coap_session_get_max_retransmit()
68 coap_session_get_ack_timeout (const coap_session_t *session) { in coap_session_get_ack_timeout()
73 coap_session_get_ack_random_factor (const coap_session_t *session) { in coap_session_get_ack_random_factor()
77 coap_session_t *
78 coap_session_reference(coap_session_t *session) { in coap_session_reference()
84 coap_session_release(coap_session_t *session) { in coap_session_release()
106 coap_session_set_app_data(coap_session_t *session, void *app_data) { in coap_session_set_app_data()
[all …]
Dasync.c38 coap_register_async(coap_session_t *session, in coap_register_async()
109 coap_find_async(coap_session_t *session, coap_bin_const_t token) { in coap_find_async()
134 coap_free_async(coap_session_t *session, coap_async_t *s) { in coap_free_async()
166 coap_register_async(coap_session_t *session, in coap_register_async()
182 coap_free_async(coap_session_t *session, coap_async_t *async) { in coap_free_async()
188 coap_find_async(coap_session_t *session, in coap_find_async()
Dcoap_mbedtls.c142 coap_session_t *c_session = (coap_session_t *)ctx; in coap_dgram_read()
187 coap_session_t *c_session = (coap_session_t *)ctx; in coap_dgram_write()
215 coap_session_t *c_session = (coap_session_t *)p_info; in psk_server_callback()
303 coap_session_t *c_session = (coap_session_t*)data; in cert_verify_callback_mbedtls()
457 coap_session_t *c_session, in setup_pki_credentials()
740 coap_session_t *c_session = (coap_session_t *)p_info; in pki_sni_callback()
822 coap_session_t *c_session = (coap_session_t *)p_info; in psk_sni_callback()
883 static int setup_server_ssl_session(coap_session_t *c_session, in setup_server_ssl_session()
1030 static int setup_client_ssl_session(coap_session_t *c_session, in setup_client_ssl_session()
1175 static int do_mbedtls_handshake(coap_session_t *c_session, in do_mbedtls_handshake()
[all …]
Dcoap_tinydtls.c57 coap_dtls_get_tls(const coap_session_t *c_session, in coap_dtls_get_tls()
123 coap_session_t *coap_session; in dtls_send_to_peer()
142 coap_session_t *coap_session; in dtls_application_data()
207 coap_session_t *coap_session; in get_psk_info()
385 coap_session_t *c_session; in verify_ecdsa_key()
477 coap_dtls_new_session(coap_session_t *session) { in coap_dtls_new_session()
492 void *coap_dtls_new_server_session(coap_session_t *session) { in coap_dtls_new_server_session()
496 void *coap_dtls_new_client_session(coap_session_t *session) { in coap_dtls_new_client_session()
527 coap_dtls_session_update_mtu(coap_session_t *session) { in coap_dtls_session_update_mtu()
532 coap_dtls_free_session(coap_session_t *coap_session) { in coap_dtls_free_session()
[all …]
Dcoap_gnutls.c218 coap_session_t *c_session = in coap_gnutls_audit_log_func()
219 (coap_session_t *)gnutls_transport_get_ptr(g_session); in coap_gnutls_audit_log_func()
386 coap_dtls_get_tls(const coap_session_t *c_session, in coap_dtls_get_tls()
511 coap_session_t *c_session = in psk_client_callback()
512 (coap_session_t *)gnutls_transport_get_ptr(g_session); in psk_client_callback()
711 coap_session_t *c_session) { in check_rpk_cert()
751 coap_session_t *c_session = in cert_verify_gnutls()
752 (coap_session_t *)gnutls_transport_get_ptr(g_session); in cert_verify_gnutls()
1469 coap_session_t *c_session = in post_client_hello_gnutls_psk()
1470 (coap_session_t *)gnutls_transport_get_ptr(g_session); in post_client_hello_gnutls_psk()
[all …]
Dcoap_openssl.c221 coap_dtls_get_tls(const coap_session_t *c_session, in coap_dtls_get_tls()
242 coap_session_t *session;
423 coap_session_t *c_session; in coap_dtls_psk_client_callback()
427 c_session = (coap_session_t*)SSL_get_app_data(ssl); in coap_dtls_psk_client_callback()
502 coap_session_t *c_session; in coap_dtls_psk_server_callback()
505 c_session = (coap_session_t*)SSL_get_app_data(ssl); in coap_dtls_psk_server_callback()
552 coap_session_t *session = (coap_session_t*)SSL_get_app_data(ssl); in coap_dtls_info_callback()
625 coap_session_t *session = (coap_session_t *)BIO_get_data(a); in coap_sock_read()
641 coap_session_t *session = (coap_session_t *)BIO_get_data(a); in coap_sock_write()
1845 coap_session_t *session = SSL_get_app_data(ssl); in tls_verify_call_back()
[all …]
/third_party/libcoap/man/
Dcoap_session.txt.in36 *coap_session_t *coap_session_reference(coap_session_t *_session_);*
38 *void coap_session_release(coap_session_t *_session_);*
40 *void coap_session_disconnected(coap_session_t *_session_, coap_nack_reason_t _reason_);*
42 *int coap_session_set_type_client(coap_session_t *_session_);*
44 *void coap_session_set_app_data(coap_session_t *_session_, void *_data_);*
46 *void *coap_session_get_app_data(const coap_session_t *_session_);*
49 const coap_session_t *_session_);*
52 const coap_session_t *_session_);*
54 *coap_context_t *coap_session_get_context(const coap_session_t *_session_);*
56 *int coap_session_get_ifindex(const coap_session_t *_session_);*
[all …]
Dcoap_endpoint_client.txt.in25 *coap_session_t *coap_new_client_session(coap_context_t *_context_,
29 *coap_session_t *coap_new_client_session_psk2(coap_context_t *_context_,
33 *coap_session_t *coap_new_client_session_pki(coap_context_t *_context_,
37 *void coap_session_set_mtu(coap_session_t *_session_, unsigned _mtu_);*
39 *size_t coap_session_max_pdu_size(const coap_session_t *_session_);*
59 and Server which is stored in a coap_session_t Session object. A CoAP session
160 static coap_session_t *
162 coap_session_t *session;
200 coap_session_t *c_session,
221 static coap_session_t *
[all …]
Dcoap_handler.txt.in70 coap_session_t *session,
100 typedef coap_response_t (*coap_response_handler_t)(coap_session_t *session,
122 typedef void (*coap_nack_handler_t)(coap_session_t *session,
143 typedef void (*coap_ping_handler_t)(coap_session_t *session,
155 typedef void (*coap_pong_handler_t)(coap_session_t *session,
167 typedef void (*coap_event_handler_t)(coap_session_t *session,
204 hnd_get_time(coap_resource_t *resource, coap_session_t *session,
266 response_handler(coap_context_t *ctx, coap_session_t *session,
/third_party/libcoap/doc/
Dupgrade_4.2.1_4.3.0.txt47 coap_session_t *session,
55 coap_session_t *session,
81 coap_session_t *session,
87 message_handler(coap_session_t *session,
110 coap_session_t *session,
116 nack_handler(coap_session_t *session,
139 struct coap_session_t *session) {
142 event_handler(coap_session_t *session,
165 coap_session_t *session,
170 ping_handler(coap_session_t *session,
[all …]
/third_party/libcoap/examples/
Detsi_iot_01.c96 coap_session_t *session COAP_UNUSED,
118 coap_session_t *session COAP_UNUSED, in hnd_get_resource()
143 coap_session_t *session COAP_UNUSED, in hnd_delete_resource()
161 coap_session_t *session COAP_UNUSED, in hnd_post_test()
227 coap_session_t *session COAP_UNUSED, in hnd_put_test()
280 coap_session_t *session COAP_UNUSED, in hnd_delete_test()
298 coap_session_t *session COAP_UNUSED, in hnd_get_query()
340 coap_session_t *session, in hnd_get_separate()

123