|
tgbot-cpp
|
#include <TgWebhookTcpServer.h>
Public Member Functions | |
| TgWebhookTcpServer (unsigned short port, const std::string &path, const EventHandler &eventHandler) | |
| TgWebhookTcpServer (unsigned short port, const Bot &bot) | |
| Public Member Functions inherited from TgBot::TgWebhookServer< boost::asio::ip::tcp > | |
| TgWebhookServer (const typename boost::asio::basic_socket_acceptor< boost::asio::ip::tcp >::endpoint_type &endpoint, const typename HttpServer< boost::asio::ip::tcp >::ServerHandler &handler)=delete | |
| Public Member Functions inherited from TgBot::HttpServer< boost::asio::ip::tcp > | |
| HttpServer (const typename boost::asio::basic_socket_acceptor< boost::asio::ip::tcp >::endpoint_type &endpoint, ServerHandler handler) | |
| void | start (const ErrorHandler &errorHandler={ }, std::initializer_list< int > signals={ SIGINT, SIGTERM }) |
| Starts receiving connections until stop() is called or one of the configured signals is received. | |
| void | stop () |
| Stops receiving new connections. Connections already accepted are completed. | |
Additional Inherited Members | |
| Public Types inherited from TgBot::HttpServer< boost::asio::ip::tcp > | |
| using | ServerHandler |
| using | ErrorHandler |
This class setups HTTP server for receiving Telegram Update objects from tcp connections.
Definition at line 14 of file TgWebhookTcpServer.h.
| TgBot::TgWebhookTcpServer::TgWebhookTcpServer | ( | unsigned short | port, |
| const std::string & | path, | ||
| const EventHandler & | eventHandler ) |
| TgBot::TgWebhookTcpServer::TgWebhookTcpServer | ( | unsigned short | port, |
| const Bot & | bot ) |