An interface abstracting Boost.Asio's tcp::acceptor for testability. This is an internal interface used for dependency injection and mocking.
More...
#include <itcp_acceptor.hpp>
|
| virtual | ~TcpAcceptorInterface ()=default |
| |
| virtual void | open (const net::ip::tcp &protocol, boost::system::error_code &ec)=0 |
| |
| virtual void | bind (const net::ip::tcp::endpoint &endpoint, boost::system::error_code &ec)=0 |
| |
| virtual void | listen (int backlog, boost::system::error_code &ec)=0 |
| |
| virtual bool | is_open () const =0 |
| |
| virtual void | close (boost::system::error_code &ec)=0 |
| |
| virtual void | async_accept (std::function< void(const boost::system::error_code &, net::ip::tcp::socket)> handler)=0 |
| |
An interface abstracting Boost.Asio's tcp::acceptor for testability. This is an internal interface used for dependency injection and mocking.
Definition at line 34 of file itcp_acceptor.hpp.
◆ ~TcpAcceptorInterface()
| virtual unilink::interface::TcpAcceptorInterface::~TcpAcceptorInterface |
( |
| ) |
|
|
virtualdefault |
◆ async_accept()
| virtual void unilink::interface::TcpAcceptorInterface::async_accept |
( |
std::function< void(const boost::system::error_code &, net::ip::tcp::socket)> |
handler | ) |
|
|
pure virtual |
◆ bind()
| virtual void unilink::interface::TcpAcceptorInterface::bind |
( |
const net::ip::tcp::endpoint & |
endpoint, |
|
|
boost::system::error_code & |
ec |
|
) |
| |
|
pure virtual |
◆ close()
| virtual void unilink::interface::TcpAcceptorInterface::close |
( |
boost::system::error_code & |
ec | ) |
|
|
pure virtual |
◆ is_open()
| virtual bool unilink::interface::TcpAcceptorInterface::is_open |
( |
| ) |
const |
|
pure virtual |
◆ listen()
| virtual void unilink::interface::TcpAcceptorInterface::listen |
( |
int |
backlog, |
|
|
boost::system::error_code & |
ec |
|
) |
| |
|
pure virtual |
◆ open()
| virtual void unilink::interface::TcpAcceptorInterface::open |
( |
const net::ip::tcp & |
protocol, |
|
|
boost::system::error_code & |
ec |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: