Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Server Class Reference

#include <Server.h>

Public Member Functions

 Server ()
 
 ~Server ()
 
void init (U16 port, const string &broadcast_endpoint_address, bool debugOutput)
 
void close ()
 

Private Member Functions

void handle_accept (const tcp_session_tpl_ptr &session, const boost::system::error_code &ec)
 

Private Attributes

boost::asio::io_context _ioService
 
std::unique_ptr< std::thread > _thread
 
std::unique_ptr< tcp_acceptor_acceptor
 
channel_ptr _channel
 
bool _debugOutput {false}
 

Detailed Description

Definition at line 44 of file Server.h.

Constructor & Destructor Documentation

◆ Server()

Divide::Server::Server ( )

Definition at line 13 of file Server.cpp.

◆ ~Server()

Divide::Server::~Server ( )

Definition at line 18 of file Server.cpp.

Member Function Documentation

◆ close()

void Divide::Server::close ( )

Definition at line 23 of file Server.cpp.

◆ handle_accept()

void Divide::Server::handle_accept ( const tcp_session_tpl_ptr &  session,
const boost::system::error_code &  ec 
)
private

Definition at line 75 of file Server.cpp.

◆ init()

void Divide::Server::init ( U16  port,
const string broadcast_endpoint_address,
bool  debugOutput 
)

Definition at line 36 of file Server.cpp.

Member Data Documentation

◆ _acceptor

std::unique_ptr<tcp_acceptor> Divide::Server::_acceptor
private

Definition at line 61 of file Server.h.

◆ _channel

channel_ptr Divide::Server::_channel
private

Definition at line 62 of file Server.h.

◆ _debugOutput

bool Divide::Server::_debugOutput {false}
private

Definition at line 63 of file Server.h.

◆ _ioService

boost::asio::io_context Divide::Server::_ioService
private

Definition at line 59 of file Server.h.

◆ _thread

std::unique_ptr<std::thread> Divide::Server::_thread
private

Definition at line 60 of file Server.h.


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