45#ifndef CONFIG_DSM_PEER_MAX
46#define CONFIG_DSM_PEER_MAX (CONFIG_DTLS_PEER_MAX)
54 SESSION_STATE_NONE = 0,
55 SESSION_STATE_HANDSHAKE,
56 SESSION_STATE_ESTABLISHED
void dsm_remove(sock_dtls_t *sock, sock_dtls_session_t *session)
Removes a session.
dsm_state_t dsm_store(sock_dtls_t *sock, sock_dtls_session_t *session, dsm_state_t new_state, bool restore)
Stores a session.
uint8_t dsm_get_num_maximum_slots(void)
Returns the maximum number of sessions slots.
uint8_t dsm_get_num_available_slots(void)
Returns the number of available session slots.
ssize_t dsm_get_least_recently_used_session(sock_dtls_t *sock, sock_dtls_session_t *session)
Returns the least recently used session.
void dsm_init(void)
Initialize the DTLS session management.
dsm_state_t
Session management states.
Information about remote client connected to the server.
Information about DTLS sock.