Agora  1.2.0
Agora project
spdlog::details::tcp_client Class Reference

#include <tcp_client-windows.h>

Public Member Functions

 tcp_client ()
 
 ~tcp_client ()
 
bool is_connected () const
 
void close ()
 
SOCKET fd () const
 
void connect (const std::string &host, int port)
 
void send (const char *data, size_t n_bytes)
 
bool is_connected () const
 
void close ()
 
int fd () const
 
 ~tcp_client ()
 
void connect (const std::string &host, int port)
 
void send (const char *data, size_t n_bytes)
 

Static Private Member Functions

static void init_winsock_ ()
 
static void throw_winsock_error_ (const std::string &msg, int last_error)
 

Private Attributes

SOCKET socket_ = INVALID_SOCKET
 
int socket_ = -1
 

Constructor & Destructor Documentation

◆ tcp_client()

spdlog::details::tcp_client::tcp_client ( )
inline
Here is the call graph for this function:

◆ ~tcp_client() [1/2]

spdlog::details::tcp_client::~tcp_client ( )
inline
Here is the call graph for this function:

◆ ~tcp_client() [2/2]

spdlog::details::tcp_client::~tcp_client ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ close() [1/2]

void spdlog::details::tcp_client::close ( )
inline
Here is the call graph for this function:

◆ close() [2/2]

void spdlog::details::tcp_client::close ( )
inline
Here is the caller graph for this function:

◆ connect() [1/2]

void spdlog::details::tcp_client::connect ( const std::string &  host,
int  port 
)
inline
Here is the call graph for this function:

◆ connect() [2/2]

void spdlog::details::tcp_client::connect ( const std::string &  host,
int  port 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fd() [1/2]

int spdlog::details::tcp_client::fd ( ) const
inline

◆ fd() [2/2]

SOCKET spdlog::details::tcp_client::fd ( ) const
inline

◆ init_winsock_()

static void spdlog::details::tcp_client::init_winsock_ ( )
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_connected() [1/2]

bool spdlog::details::tcp_client::is_connected ( ) const
inline

◆ is_connected() [2/2]

bool spdlog::details::tcp_client::is_connected ( ) const
inline
Here is the caller graph for this function:

◆ send() [1/2]

void spdlog::details::tcp_client::send ( const char *  data,
size_t  n_bytes 
)
inline
Here is the call graph for this function:

◆ send() [2/2]

void spdlog::details::tcp_client::send ( const char *  data,
size_t  n_bytes 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ throw_winsock_error_()

static void spdlog::details::tcp_client::throw_winsock_error_ ( const std::string &  msg,
int  last_error 
)
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ socket_ [1/2]

SOCKET spdlog::details::tcp_client::socket_ = INVALID_SOCKET
private

◆ socket_ [2/2]

int spdlog::details::tcp_client::socket_ = -1
private

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