Skip to main content

SocketSSL

The SocketSSL class extends the Socket class and provides additional functionality for handling secure SSL/TLS connections. It offers methods for performing the SSL handshake, which establishes a secure connection, as well as accepting SSL-based socket connections. The class includes capabilities for loading SSL certificates from streams or file names, enabling secure communication through encryption.

#include <core/TellusimSocket.h>

Inheritance

Constructors

SocketSSL()

Methods

Stream socket.

bool handshake(const char *name = nullptr)
virtual bool accept(SocketSSL &socket)
virtual bool accept(Socket &socket)

Socket certificate.

bool load(Stream &stream)
bool load(const char *name)
bool load(const String &name)

Socket status.

bool isConnected() const