SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Thrift::CommClient Class Reference

#include <swcdb/thrift/client/Client.h>

+ Inheritance diagram for SWC::Thrift::CommClient:
+ Collaboration diagram for SWC::Thrift::CommClient:

Public Member Functions

 CommClient (const std::string &host, const uint16_t port, const uint32_t timeout, bool open=true)
 
void open ()
 
void close ()
 
virtual ~CommClient () noexcept
 

Protected Attributes

std::shared_ptr< thrift::transport::TTransport > socket
 
std::shared_ptr< thrift::transport::TTransport > transport
 
std::shared_ptr< thrift::protocol::TProtocol > protocol
 

Detailed Description

Definition at line 45 of file Client.h.

Constructor & Destructor Documentation

◆ CommClient()

SWC::Thrift::CommClient::CommClient ( const std::string &  host,
const uint16_t  port,
const uint32_t  timeout,
bool  open = true 
)
inline

Definition at line 48 of file Client.h.

References open(), protocol, socket, and transport.

+ Here is the call graph for this function:

◆ ~CommClient()

virtual SWC::Thrift::CommClient::~CommClient ( )
inlinevirtualnoexcept

Definition at line 71 of file Client.h.

References close(), and transport.

+ Here is the call graph for this function:

Member Function Documentation

◆ close()

void SWC::Thrift::CommClient::close ( )
inline

Definition at line 66 of file Client.h.

References transport.

Referenced by ~CommClient().

+ Here is the caller graph for this function:

◆ open()

void SWC::Thrift::CommClient::open ( )
inline

Definition at line 61 of file Client.h.

References transport.

Referenced by CommClient().

+ Here is the caller graph for this function:

Member Data Documentation

◆ protocol

std::shared_ptr<thrift::protocol::TProtocol> SWC::Thrift::CommClient::protocol
protected

Definition at line 80 of file Client.h.

Referenced by CommClient().

◆ socket

std::shared_ptr<thrift::transport::TTransport> SWC::Thrift::CommClient::socket
protected

Definition at line 78 of file Client.h.

Referenced by CommClient().

◆ transport

std::shared_ptr<thrift::transport::TTransport> SWC::Thrift::CommClient::transport
protected

Definition at line 79 of file Client.h.

Referenced by close(), CommClient(), open(), and ~CommClient().


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