Kinetic C/C++ Client
 All Classes Functions Variables Pages
Public Member Functions | List of all members
kinetic::SocketWrapper Class Reference
Inheritance diagram for kinetic::SocketWrapper:
Inheritance graph
[legend]
Collaboration diagram for kinetic::SocketWrapper:
Collaboration graph
[legend]

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.
 
- Public Member Functions inherited from kinetic::SocketWrapperInterface
virtual ~SocketWrapperInterface ()
 The destructor should close the FD if it was opened by connect.
 

Detailed Description

Definition at line 30 of file socket_wrapper.h.


The documentation for this class was generated from the following files: