pub unsafe extern "C" fn dtls_new_peer(
session: *const session_t,
) -> *mut dtls_peer_tExpand description
Creates a new peer for given @p session. The current configuration is initialized with the cipher suite TLS_NULL_WITH_NULL_NULL (i.e. no security at all). This function returns a pointer to the new peer or NULL on error. The caller is responsible for releasing the storage allocated for this peer using dtls_free_peer().
@param session The remote peer’s address and local interface index. @return A pointer to a newly created and initialized peer object or NULL on error.