olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
Loading...
Searching...
No Matches
olc::net::client_interface< T > Class Template Reference

#include <olcPGEX_Network.h>

Public Member Functions

 client_interface ()
 
virtual ~client_interface ()
 
bool Connect (const std::string &host, const uint16_t port)
 
void Disconnect ()
 
bool IsConnected ()
 
void Send (const message< T > &msg)
 
tsqueue< owned_message< T > > & Incoming ()
 

Protected Attributes

asio::io_context m_context
 
std::thread thrContext
 
std::unique_ptr< connection< T > > m_connection
 

Constructor & Destructor Documentation

◆ client_interface()

template<typename T >
olc::net::client_interface< T >::client_interface ( )
inline

◆ ~client_interface()

template<typename T >
virtual olc::net::client_interface< T >::~client_interface ( )
inlinevirtual

Member Function Documentation

◆ Connect()

template<typename T >
bool olc::net::client_interface< T >::Connect ( const std::string & host,
const uint16_t port )
inline

◆ Disconnect()

template<typename T >
void olc::net::client_interface< T >::Disconnect ( )
inline

◆ Incoming()

template<typename T >
tsqueue< owned_message< T > > & olc::net::client_interface< T >::Incoming ( )
inline

◆ IsConnected()

template<typename T >
bool olc::net::client_interface< T >::IsConnected ( )
inline

◆ Send()

template<typename T >
void olc::net::client_interface< T >::Send ( const message< T > & msg)
inline

Member Data Documentation

◆ m_connection

template<typename T >
std::unique_ptr<connection<T> > olc::net::client_interface< T >::m_connection
protected

◆ m_context

template<typename T >
asio::io_context olc::net::client_interface< T >::m_context
protected

◆ thrContext

template<typename T >
std::thread olc::net::client_interface< T >::thrContext
protected

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