23 #ifndef TGBOT_TGWEBHOOKTCPSERVER_H 24 #define TGBOT_TGWEBHOOKTCPSERVER_H 37 TgWebhookTcpServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp>> acceptor,
const std::string& path,
EventHandler* eventHandler) =
delete;
40 TgWebhookServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp>>(new boost::asio::ip::tcp::acceptor(
_ioService, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port))), path, eventHandler)
50 #endif //TGBOT_TGWEBHOOKTCPSERVER_H TgWebhookTcpServer(std::shared_ptr< boost::asio::basic_socket_acceptor< boost::asio::ip::tcp >> acceptor, const std::string &path, EventHandler *eventHandler)=delete
TgWebhookTcpServer(const std::string &path, const Bot &bot)
This object holds other objects specific for this bot instance.
TgWebhookTcpServer(unsigned short port, const std::string &path, const EventHandler *eventHandler)
boost::asio::io_service _ioService