Loading...
Searching...
No Matches
resdb::AsyncAcceptor Class Reference

#include <async_acceptor.h>

Public Types

typedef std::function< void(const char *buffer, size_t len)> CallBack
 

Public Member Functions

 AsyncAcceptor (const std::string &ip, int thread_num, int port, CallBack call_back_func)
 
virtual ~AsyncAcceptor ()
 
void StartAccept ()
 

Detailed Description

Definition at line 26 of file async_acceptor.h.

Member Typedef Documentation

◆ CallBack

typedef std::function<void(const char* buffer, size_t len)> resdb::AsyncAcceptor::CallBack

Definition at line 28 of file async_acceptor.h.

Constructor & Destructor Documentation

◆ AsyncAcceptor()

resdb::AsyncAcceptor::AsyncAcceptor ( const std::string &  ip,
int  thread_num,
int  port,
CallBack  call_back_func 
)

Definition at line 112 of file async_acceptor.cpp.

◆ ~AsyncAcceptor()

resdb::AsyncAcceptor::~AsyncAcceptor ( )
virtual

Definition at line 123 of file async_acceptor.cpp.

Member Function Documentation

◆ StartAccept()

void resdb::AsyncAcceptor::StartAccept ( )

Definition at line 141 of file async_acceptor.cpp.