Public Member Functions | |
SocketWrapper (const std::string &host, int port, bool use_ssl, bool nonblocking=false) | |
bool | Connect () |
Actually open the connection to the socket. The details of the host/port/protocol to connect on depend on the implementation. Returns true if the connection succeeds and the socket is ready for reading/writing. | |
int | fd () |
Returns the FD. | |
SSL * | getSSL () |
Returns nullptr if SSL hasn't been initialized. | |
![]() | |
virtual | ~SocketWrapperInterface () |
The destructor should close the FD if it was opened by connect. | |
Definition at line 30 of file socket_wrapper.h.