21 #ifndef KINETIC_CPP_CLIENT_SOCKET_WRAPPER_INTERFACE_H_
22 #define KINETIC_CPP_CLIENT_SOCKET_WRAPPER_INTERFACE_H_
24 #include <openssl/ssl.h>
51 #endif // KINETIC_CPP_CLIENT_SOCKET_WRAPPER_INTERFACE_H_
virtual SSL * getSSL()=0
Returns nullptr if SSL hasn't been initialized.
virtual bool Connect()=0
Actually open the connection to the socket. The details of the host/port/protocol to connect on depen...
virtual ~SocketWrapperInterface()
The destructor should close the FD if it was opened by connect.
virtual int fd()=0
Returns the FD.
Simple wrapper around a socket FD that closes the FD in the destructor.