Simple wrapper around a socket FD that closes the FD in the destructor. More...
#include <socket_wrapper_interface.h>

Public Member Functions | |
| virtual bool | Connect ()=0 |
| 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. | |
| virtual int | fd ()=0 |
| Returns the FD. | |
| virtual SSL * | getSSL ()=0 |
| Returns nullptr if SSL hasn't been initialized. | |
| virtual | ~SocketWrapperInterface () |
| The destructor should close the FD if it was opened by connect. | |
Simple wrapper around a socket FD that closes the FD in the destructor.
Definition at line 30 of file socket_wrapper_interface.h.
1.8.8