Home
last modified time | relevance | path

Searched refs:dtls_context (Results 1 – 4 of 4) sorted by relevance

/net-tools-2.7.6/tinydtls-0.8.2/examples/contiki/
Ddtls-client.c67 static dtls_context_t *dtls_context; variable
292 dtls_context = dtls_new_context(client_conn); in init_dtls()
293 if (dtls_context) in init_dtls()
294 dtls_set_handler(dtls_context, &cb); in init_dtls()
310 if (!dtls_context) { in PROCESS_THREAD()
318 dtls_handle_read(dtls_context); in PROCESS_THREAD()
329 connected = dtls_connect(dtls_context, &dst) >= 0; in PROCESS_THREAD()
331 try_send(dtls_context, &dst); in PROCESS_THREAD()
Ddtls-server.c61 static dtls_context_t *dtls_context; variable
292 dtls_context = dtls_new_context(server_conn); in init_dtls()
293 if (dtls_context) in init_dtls()
294 dtls_set_handler(dtls_context, &cb); in init_dtls()
307 if (!dtls_context) { in PROCESS_THREAD()
319 dtls_handle_read(dtls_context); in PROCESS_THREAD()
324 read_from_peer(dtls_context, &the_session, readbuf, bytes_read); in PROCESS_THREAD()
/net-tools-2.7.6/tinydtls-0.8.2/tests/
Ddtls-client.c45 static dtls_context_t *dtls_context = NULL; variable
234 dtls_free_context(dtls_context); in dtls_handle_signal()
462 dtls_context = dtls_new_context(&fd);
463 if (!dtls_context) {
468 dtls_set_handler(dtls_context, &cb);
470 dtls_connect(dtls_context, &dst);
493 dtls_handle_read(dtls_context);
502 dtls_close(dtls_context, &dst);
507 dtls_renegotiate(dtls_context, &dst);
510 try_send(dtls_context, &dst);
[all …]
/net-tools-2.7.6/
Dcoap-client.c496 static dtls_context_t *dtls_context; variable
1511 ssize_t bytes_written = dtls_write(dtls_context, &session, in my_coap_network_send()
1783 dtls_context = dtls_new_context(&user_data);
1784 if (!dtls_context) {
1789 dtls_set_handler(dtls_context, &cb);
1794 dtls_connect(dtls_context, &dst);
1876 if (dtls_handle_read(dtls_context) < 0) {
1897 dtls_close(dtls_context, &dst);
1899 dtls_free_context(dtls_context);