23 #ifndef TGBOT_TGWEBHOOKTCPSERVER_H 24 #define TGBOT_TGWEBHOOKTCPSERVER_H 26 #ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS 37 class TgWebhookLocalServer :
public TgWebhookServer<boost::asio::local::stream_protocol> {
40 TgWebhookLocalServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>& acceptor,
const std::string& path, EventHandler* eventHandler) =
delete;
42 TgWebhookLocalServer(
const std::string& path,
const EventHandler* eventHandler) :
43 TgWebhookServer<boost::asio::local::stream_protocol>(std::make_shared<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(_ioService, boost::asio::local::stream_protocol::endpoint(path)), path, eventHandler)
47 TgWebhookLocalServer(
const std::string& path,
const Bot& bot) : TgWebhookLocalServer(path, &bot.getEventHandler()) {
53 #endif //BOOST_ASIO_HAS_LOCAL_SOCKETS 55 #endif //TGBOT_TGWEBHOOKTCPSERVER_H