Adbase
Adinf C++ base library V2
adbase::Acceptor Class Reference

#include <Acceptor.hpp>

Public Types

typedef std::function< void(const InetAddress &, int)> NewConnectionCallback
 

Public Member Functions

 Acceptor (EventBasePtr &base, const InetAddress &listenAddr, bool reuseport)
 
void init ()
 
void acceptHandler (int fd)
 
void setNewConnection (const NewConnectionCallback &cb)
 
 ~Acceptor ()
 

Detailed Description

Definition at line 22 of file Acceptor.hpp.

Member Typedef Documentation

typedef std::function<void (const InetAddress&, int)> adbase::Acceptor::NewConnectionCallback

Definition at line 24 of file Acceptor.hpp.

Constructor & Destructor Documentation

adbase::Acceptor::Acceptor ( EventBasePtr base,
const InetAddress listenAddr,
bool  reuseport 
)
adbase::Acceptor::~Acceptor ( )

Definition at line 35 of file Acceptor.cpp.

Member Function Documentation

void adbase::Acceptor::acceptHandler ( int  fd)
void adbase::Acceptor::init ( )
void adbase::Acceptor::setNewConnection ( const NewConnectionCallback cb)
inline

Definition at line 28 of file Acceptor.hpp.

Referenced by adbase::TcpServer::TcpServer().


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