Open()
Opens the socket.
SetMaxConnectionAttempts()
Sets the maximum number of allowed connection requests before socket is automatically closed. This method can be called when socket is closed. Otherwise `kErrorInvalidSatet` is returned. If @p aMaxAttempts is zero, no limit is applied and connections are allowed until the socket is closed. This is the default behavior if `SetMaxConnectionAttempts()` is not called.
Bind()
Binds this DTLS to a UDP port.
GetUdpPort() const
Gets the UDP port of this session.
Bind()
Binds this DTLS to a UDP port.
Connect()
Establishes a secure session. For CoAP Secure API do first: Set X509 Pk and Cert for use DTLS mode ECDHE ECDSA with AES 128 CCM 8 or set PreShared Key for use DTLS mode PSK with AES 128 CCM 8.
IsConnectionActive() const
Indicates whether or not the session is active.
IsConnected() const
Indicates whether or not the session is connected.
IsClosed() const
Indicates whether or not the session is closed.
Disconnect()
Disconnects the session.
Close()
Closes the socket.
SetPsk()
Sets the PSK.
SetClientId()
Sets the Client ID used for generating the Hello Cookie.
Send()
Sends data within the session.
Receive()
Provides a received message to the SecureTransport object.
SetDefaultMessageSubType()
Sets the default message sub-type that will be used for all messages without defined sub-type.
GetMessageInfo() const
Returns the session's peer address.
HandleReceive()
Checks and handles a received message provided to the SecureTransport object. If checks based on the message info and current connection state pass, the message is processed.
IsStateClosed() const
IsStateOpen() const
IsStateInitializing() const
IsStateConnecting() const
IsStateConnected() const
IsStateCloseNotify() const
IsStateConnectingOrConnected() const
SetState()
FreeMbedtls()
Setup()
HandleMbedtlsDebug()
HandleMbedtlsDebug()
HandleMbedtlsGetTimer()
HandleMbedtlsGetTimer()
HandleMbedtlsSetTimer()
HandleMbedtlsSetTimer()
HandleMbedtlsReceive()
HandleMbedtlsReceive()
HandleMbedtlsTransmit()
HandleMbedtlsTransmit()
HandleMbedtlsExportKeys()
HandleMbedtlsExportKeys()
HandleTimer()
HandleTimer()
HandleReceive()
Checks and handles a received message provided to the SecureTransport object. If checks based on the message info and current connection state pass, the message is processed.
HandleSecureTransportSend()
Process()
Disconnect()
Disconnects the session.
StateToString()