22#ifndef DTLSSOCKETWRAPPER_H
23#define DTLSSOCKETWRAPPER_H
26#include "rtos/Kernel.h"
29#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY)
52 static void timing_set_delay(
void *ctx, uint32_t int_ms, uint32_t fin_ms);
53 static int timing_get_delay(
void *ctx);
55 rtos::Kernel::Clock::time_point _int_time;
56 int _timer_event_id = 0;
57 bool _timer_expired =
false;
DTLSSocketWrapper implement DTLS stream over the existing Socket transport.
~DTLSSocketWrapper()
Destroy a socket wrapper.
DTLSSocketWrapper(Socket *transport, const char *hostname=NULL, control_transport control=TRANSPORT_CONNECT_AND_CLOSE)
Create a DTLSSocketWrapper.
nsapi_error_t close() override
Closes the socket.
TLSSocket is a wrapper around Socket for interacting with TLS servers.
control_transport
Transport modes.
@ TRANSPORT_CONNECT_AND_CLOSE
Does call connect() and close() on transport socket.
signed int nsapi_error_t
Type used to represent error codes.