AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AsyncServer Class Reference

#include <asynctcp.hpp>

Public Member Functions

 AsyncServer (boost::asio::io_context &io_service, uint16_t port)
 
 ~AsyncServer ()
 
void onClient (AcConnectHandler cb, void *arg=0)
 
void begin ()
 
void end ()
 
void setNoDelay (bool value=true)
 

Protected Member Functions

void initAccept ()
 

Protected Attributes

boost::asio::io_context & _io_service
 
uint16_t _port = 0
 
tcp::acceptor mAcceptor
 
AcConnectHandler _connect_cb = 0
 
void * _connect_cb_arg = 0
 

Constructor & Destructor Documentation

◆ AsyncServer()

AsyncServer::AsyncServer ( boost::asio::io_context &  io_service,
uint16_t  port 
)
inline

◆ ~AsyncServer()

AsyncServer::~AsyncServer ( )
inline

Member Function Documentation

◆ begin()

void AsyncServer::begin ( )
inline

◆ end()

void AsyncServer::end ( )
inline

◆ initAccept()

void AsyncServer::initAccept ( )
inlineprotected

◆ onClient()

void AsyncServer::onClient ( AcConnectHandler  cb,
void *  arg = 0 
)
inline

◆ setNoDelay()

void AsyncServer::setNoDelay ( bool  value = true)
inline

Member Data Documentation

◆ _connect_cb

AcConnectHandler AsyncServer::_connect_cb = 0
protected

◆ _connect_cb_arg

void* AsyncServer::_connect_cb_arg = 0
protected

◆ _io_service

boost::asio::io_context& AsyncServer::_io_service
protected

◆ _port

uint16_t AsyncServer::_port = 0
protected

◆ mAcceptor

tcp::acceptor AsyncServer::mAcceptor
protected

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