1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/tinydtls: implement sock_dtls_session_get_udp_ep

This commit is contained in:
János Brodbeck 2020-12-13 06:09:17 +01:00
parent 0e12a5d1c3
commit 4be161c3e7
No known key found for this signature in database
GPG Key ID: 65C193B0D8D1BCE6

View File

@ -345,6 +345,15 @@ void sock_dtls_session_destroy(sock_dtls_t *sock, sock_dtls_session_t *remote)
dtls_close(sock->dtls_ctx, &remote->dtls_session);
}
void sock_dtls_session_get_udp_ep(const sock_dtls_session_t *session,
sock_udp_ep_t *ep)
{
assert(session);
assert(ep);
_session_to_ep(&session->dtls_session, ep);
}
ssize_t sock_dtls_send_aux(sock_dtls_t *sock, sock_dtls_session_t *remote,
const void *data, size_t len, uint32_t timeout,
sock_dtls_aux_tx_t *aux)