30#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY)
79 return _udp_socket.
open(stack);
DTLSSocket implement DTLS stream over UDP Socket.
~DTLSSocket() override
Destroy the DTLSSocket and closes the transport.
nsapi_error_t open(NetworkStack *stack)
Opens a socket.
DTLSSocket(S *stack, const char *hostname=NULL)
Create a socket on a network interface.
DTLSSocket()
Create an uninitialized DTLS socket.
DTLSSocketWrapper implement DTLS stream over the existing Socket transport.
nsapi_error_t open(NetworkStack *stack)
Open a network socket on the network stack of the given network interface.
virtual nsapi_error_t connect(const SocketAddress &address)=0
Connects socket to a remote address.
UDP socket implementation.
signed int nsapi_error_t
Type used to represent error codes.
NetworkStack * nsapi_create_stack(nsapi_stack_t *stack)
Convert a raw nsapi_stack_t object into a C++ NetworkStack object.