Kinetic C/C++ Client
 All Classes Functions Variables Pages
Public Member Functions | List of all members
kinetic::SocketWrapperInterface Class Referenceabstract

Simple wrapper around a socket FD that closes the FD in the destructor. More...

#include <socket_wrapper_interface.h>

Inheritance diagram for kinetic::SocketWrapperInterface:
Inheritance graph
[legend]

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.
 

Detailed Description

Simple wrapper around a socket FD that closes the FD in the destructor.

Definition at line 30 of file socket_wrapper_interface.h.


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