#include <SSLSocket.h>
Inheritance diagram for SSLSocket:
Public Methods | |
const SSLSocket & | operator>> (string &mesg) |
SSLSocket (const int socket, SSL_CTX &sslContext) | |
SSLSocket (const char *hostname, uint16_t port, SSL_CTX &sslContext) | |
int | readLine (string &msg) |
void | interrupt () |
bool | connected () |
Protected Methods | |
virtual int | readBlock (void *buffer, int maxlen) |
virtual int | writeBlock (const void *buffer, int length) |
|
Server-side constructor. Construct a new SSL Socket around the supplied TCP socket, which should already be connected. The SSL handshake will be performed from the server-perspective if this constructor is used. Normally, only the SSLServerSocket will use this constructor, so you shouldn't use it directly.
|
|
Creates a new SSLSocket connection to the specified server and port.
|
|
Checks if the SSLSocket is in a connected state. |
|
Interrupt current read actions (socket becomes write-only). Implements Socket. |
|
Overwrites a string with bytes from the socket. Blocks waiting for more input. The original content of the string is overwritten with the read data and a zero is user for termination.
|
|
Reads raw bytes from the socket for binary data transmission.
Implements Socket. |
|
Read a single line of ASCII data (CR/LF automatically removed).
Implements Socket. |
|
Writes raw data to the socket for binary data transmission.
Implements Socket. |