Loading...
Searching...
No Matches
sock_dtls Struct Reference

Information about DTLS sock. More...

Detailed Description

Information about DTLS sock.

Definition at line 41 of file sock_dtls_types.h.

#include <sock_dtls_types.h>

Data Fields

dtls_context_t * dtls_ctx
 TinyDTLS context for sock.
 
sock_udp_tudp_sock
 Underlying UDP sock to use.
 
void * buf_ctx
 Network stack internal buffer context.
 
sock_dtls_cb_t async_cb
 Asynchronous event callback.
 
void * async_cb_arg
 asynchronous callback arg
 
session_t async_cb_session
 asynchronous callback session
 
sock_async_ctx_t async_ctx
 Asynchronous event context.
 
mbox_t mbox
 Mailbox for internal event handling.
 
msg_t mbox_queue [SOCK_DTLS_MBOX_SIZE]
 Queue for struct sock_dtls::mbox.
 
struct { 
 
   uint8_t *   data 
 Pointer to the decrypted data. More...
 
   size_t   datalen 
 data length More...
 
   session_t *   session 
 Session information. More...
 
buffer 
 Buffer used to pass decrypted data and its session information.
 
char psk_hint [CONFIG_DTLS_PSK_ID_HINT_MAX_SIZE]
 PSK Identity hint.
 
credman_tag_t tags [CONFIG_DTLS_CREDENTIALS_MAX]
 Tags of the available credentials.
 
unsigned tags_len
 Number of tags in the list 'tags'.
 
dtls_peer_type role
 DTLS role of the socket.
 
sock_dtls_client_psk_cb_t client_psk_cb
 Callback to determine PSK credential for session.
 
sock_dtls_rpk_cb_t rpk_cb
 Callback to determine RPK credential for session.
 

Field Documentation

◆ async_cb

sock_dtls_cb_t sock_dtls::async_cb

Asynchronous event callback.

Note
Only available if SOCK_HAS_ASYNC is defined

Definition at line 54 of file sock_dtls_types.h.

◆ async_cb_arg

void* sock_dtls::async_cb_arg

asynchronous callback arg

Definition at line 55 of file sock_dtls_types.h.

◆ async_cb_session

session_t sock_dtls::async_cb_session

asynchronous callback session

Definition at line 56 of file sock_dtls_types.h.

◆ async_ctx

sock_async_ctx_t sock_dtls::async_ctx

Asynchronous event context.

Note
Only available if SOCK_HAS_ASYNC_CTX is defined

Definition at line 63 of file sock_dtls_types.h.

◆ buf_ctx

void* sock_dtls::buf_ctx

Network stack internal buffer context.

Definition at line 48 of file sock_dtls_types.h.

◆ client_psk_cb

sock_dtls_client_psk_cb_t sock_dtls::client_psk_cb

Callback to determine PSK credential for session.

Definition at line 82 of file sock_dtls_types.h.

◆ data

uint8_t* sock_dtls::data

Pointer to the decrypted data.

Definition at line 74 of file sock_dtls_types.h.

◆ datalen

size_t sock_dtls::datalen

data length

Definition at line 75 of file sock_dtls_types.h.

◆ dtls_ctx

dtls_context_t* sock_dtls::dtls_ctx

TinyDTLS context for sock.

Definition at line 42 of file sock_dtls_types.h.

◆ mbox

mbox_t sock_dtls::mbox

Mailbox for internal event handling.

Definition at line 66 of file sock_dtls_types.h.

◆ mbox_queue

msg_t sock_dtls::mbox_queue[SOCK_DTLS_MBOX_SIZE]

Queue for struct sock_dtls::mbox.

Definition at line 68 of file sock_dtls_types.h.

◆ psk_hint

char sock_dtls::psk_hint[CONFIG_DTLS_PSK_ID_HINT_MAX_SIZE]

PSK Identity hint.

Definition at line 78 of file sock_dtls_types.h.

◆ role

dtls_peer_type sock_dtls::role

DTLS role of the socket.

Definition at line 81 of file sock_dtls_types.h.

◆ rpk_cb

sock_dtls_rpk_cb_t sock_dtls::rpk_cb

Callback to determine RPK credential for session.

Definition at line 83 of file sock_dtls_types.h.

◆ session

session_t* sock_dtls::session

Session information.

Definition at line 76 of file sock_dtls_types.h.

◆ tags

Tags of the available credentials.

Definition at line 79 of file sock_dtls_types.h.

◆ tags_len

unsigned sock_dtls::tags_len

Number of tags in the list 'tags'.

Definition at line 80 of file sock_dtls_types.h.

◆ udp_sock

sock_udp_t* sock_dtls::udp_sock

Underlying UDP sock to use.

Definition at line 43 of file sock_dtls_types.h.


The documentation for this struct was generated from the following file: