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_set_udp_ep

This commit is contained in:
János Brodbeck 2020-12-18 15:09:04 +01:00
parent a303081101
commit 34a15b6540
No known key found for this signature in database
GPG Key ID: 65C193B0D8D1BCE6

View File

@ -354,6 +354,15 @@ void sock_dtls_session_get_udp_ep(const sock_dtls_session_t *session,
_session_to_ep(&session->dtls_session, ep);
}
void sock_dtls_session_set_udp_ep(sock_dtls_session_t *session,
const sock_udp_ep_t *ep)
{
assert(session);
assert(ep);
_ep_to_session(ep, &session->dtls_session);
}
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)