dtls_get_peer method
Check if @p session is associated with a peer object in @p context. This function returns a pointer to the peer if found, NULL otherwise.
@param context The DTLS context to search. @param session The remote address and local interface @return A pointer to the peer associated with @p session or NULL if none exists.
Implementation
ffi.Pointer<dtls_peer_t> dtls_get_peer(
ffi.Pointer<dtls_context_t> context,
ffi.Pointer<session_t> session,
) {
return _dtls_get_peer(
context,
session,
);
}