10#include <FMEThirdPartyWarningsDisable.h>
11#include <boost/asio/ip/tcp.hpp>
14#include <FMEThirdPartyWarningsRestore.h>
43 TcpAcceptor(std::shared_ptr<Context> context,
const std::string&
address,
const unsigned short port);
45 template<
typename AcceptHandler>
48 this->acceptor.async_accept(
candidate.socket, std::forward<AcceptHandler>(handler));
51 unsigned short port()
const;
59 std::shared_ptr<Context> context;
61 boost::asio::ip::tcp::acceptor acceptor;
#define ASYNCHRONOUSIO_EXPORT
A TCP acceptor listening on a given port and interface address.
TcpAcceptor(std::shared_ptr< Context > context, const std::string &address, const unsigned short port)
unsigned short port() const
void async_accept(TcpSocket &candidate, AcceptHandler &&handler)
A TCP socket class implementing the asio::Socket interface.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.