tgbot-cpp
Loading...
Searching...
No Matches
TgBot::TgWebhookTcpServer Class Reference

#include <TgWebhookTcpServer.h>

Inheritance diagram for TgBot::TgWebhookTcpServer:
TgBot::TgWebhookServer< boost::asio::ip::tcp > TgBot::HttpServer< boost::asio::ip::tcp >

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

Detailed Description

This class setups HTTP server for receiving Telegram Update objects from tcp connections.

Definition at line 14 of file TgWebhookTcpServer.h.

Constructor & Destructor Documentation

◆ TgWebhookTcpServer() [1/2]

TgBot::TgWebhookTcpServer::TgWebhookTcpServer ( unsigned short port,
const std::string & path,
const EventHandler & eventHandler )

◆ TgWebhookTcpServer() [2/2]

TgBot::TgWebhookTcpServer::TgWebhookTcpServer ( unsigned short port,
const Bot & bot )

The documentation for this class was generated from the following file: