21 #ifndef KINETIC_CPP_CLIENT_SOCKET_WRAPPER_H_
22 #define KINETIC_CPP_CLIENT_SOCKET_WRAPPER_H_
24 #include "socket_wrapper_interface.h"
25 #include "kinetic/connection_options.h"
32 explicit SocketWrapper(
const std::string &host,
int port,
bool use_ssl,
bool nonblocking =
false);
51 #endif // KINETIC_CPP_CLIENT_SOCKET_WRAPPER_H_
SSL * getSSL()
Returns nullptr if SSL hasn't been initialized.
bool Connect()
Actually open the connection to the socket. The details of the host/port/protocol to connect on depen...
Simple wrapper around a socket FD that closes the FD in the destructor.