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

#include <udp_client-windows.h>

Collaboration diagram for spdlog::details::udp_client:

Public Member Functions

 udp_client (const std::string &host, uint16_t port)
 
 ~udp_client ()
 
SOCKET fd () const
 
void send (const char *data, size_t n_bytes)
 
 udp_client (const std::string &host, uint16_t port)
 
 ~udp_client ()
 
int fd () const
 
void send (const char *data, size_t n_bytes)
 

Private Member Functions

void cleanup_ ()
 
void cleanup_ ()
 

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
 
sockaddr_in addr_ = {0}
 
int socket_ = -1
 
struct sockaddr_in sockAddr_
 

Static Private Attributes

static constexpr int TX_BUFFER_SIZE = 1024 * 10
 

Constructor & Destructor Documentation

◆ udp_client() [1/2]

spdlog::details::udp_client::udp_client ( const std::string &  host,
uint16_t  port 
)
inline
Here is the call graph for this function:

◆ ~udp_client() [1/2]

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

◆ udp_client() [2/2]

spdlog::details::udp_client::udp_client ( const std::string &  host,
uint16_t  port 
)
inline
Here is the call graph for this function:

◆ ~udp_client() [2/2]

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

Member Function Documentation

◆ cleanup_() [1/2]

void spdlog::details::udp_client::cleanup_ ( )
inlineprivate
Here is the call graph for this function:

◆ cleanup_() [2/2]

void spdlog::details::udp_client::cleanup_ ( )
inlineprivate
Here is the caller graph for this function:

◆ fd() [1/2]

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

◆ fd() [2/2]

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

◆ init_winsock_()

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

◆ send() [1/2]

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

◆ send() [2/2]

void spdlog::details::udp_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::udp_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

◆ addr_

sockaddr_in spdlog::details::udp_client::addr_ = {0}
private

◆ sockAddr_

struct sockaddr_in spdlog::details::udp_client::sockAddr_
private

◆ socket_ [1/2]

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

◆ socket_ [2/2]

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

◆ TX_BUFFER_SIZE

static constexpr int spdlog::details::udp_client::TX_BUFFER_SIZE = 1024 * 10
staticconstexprprivate

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