![]() |
olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
|
#include <olcPGEX_Network.h>
Public Member Functions | |
server_interface (uint16_t port) | |
virtual | ~server_interface () |
bool | Start () |
void | Stop () |
void | WaitForClientConnection () |
void | MessageClient (std::shared_ptr< connection< T > > client, const message< T > &msg) |
void | MessageAllClients (const message< T > &msg, std::shared_ptr< connection< T > > pIgnoreClient=nullptr) |
void | Update (size_t nMaxMessages=-1, bool bWait=false) |
virtual void | OnClientValidated (std::shared_ptr< connection< T > > client) |
Protected Member Functions | |
virtual bool | OnClientConnect (std::shared_ptr< connection< T > > client) |
virtual void | OnClientDisconnect (std::shared_ptr< connection< T > > client) |
virtual void | OnMessage (std::shared_ptr< connection< T > > client, message< T > &msg) |
Protected Attributes | |
tsqueue< owned_message< T > > | m_qMessagesIn |
std::deque< std::shared_ptr< connection< T > > > | m_deqConnections |
asio::io_context | m_asioContext |
std::thread | m_threadContext |
asio::ip::tcp::acceptor | m_asioAcceptor |
uint32_t | nIDCounter = 10000 |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |