23 #ifndef TGBOT_TGWEBHOOKTCPSERVER_H 24 #define TGBOT_TGWEBHOOKTCPSERVER_H 26 #ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS 36 class TgWebhookLocalServer :
public TgWebhookServer<boost::asio::local::stream_protocol> {
39 TgWebhookLocalServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>& acceptor,
const std::string& path, EventHandler* eventHandler) =
delete;
41 TgWebhookLocalServer(
const std::string& path,
const EventHandler* eventHandler) :
42 TgWebhookServer<boost::asio::local::stream_protocol>(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(new boost::asio::local::stream_protocol::acceptor(_ioService, boost::asio::local::stream_protocol::endpoint(path))), path, eventHandler)
46 TgWebhookLocalServer(
const std::string& path,
const Bot& bot) : TgWebhookLocalServer(path, &bot.getEventHandler()) {
52 #endif //BOOST_ASIO_HAS_LOCAL_SOCKETS 54 #endif //TGBOT_TGWEBHOOKTCPSERVER_H