tgbot-cpp
Loading...
Searching...
No Matches
TgBot::TgWebhookServer< Protocol > Class Template Reference

#include <TgWebhookServer.h>

Inheritance diagram for TgBot::TgWebhookServer< Protocol >:
TgBot::HttpServer< Protocol >

Public Member Functions

 TgWebhookServer (const typename boost::asio::basic_socket_acceptor< Protocol >::endpoint_type &endpoint, const typename HttpServer< Protocol >::ServerHandler &handler)=delete
 TgWebhookServer (const typename boost::asio::basic_socket_acceptor< Protocol >::endpoint_type &endpoint, std::string path, const EventHandler &eventHandler)
 TgWebhookServer (const typename boost::asio::basic_socket_acceptor< Protocol >::endpoint_type &endpoint, const Bot &bot)
Public Member Functions inherited from TgBot::HttpServer< Protocol >
 HttpServer (const typename boost::asio::basic_socket_acceptor< Protocol >::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< Protocol >
using ServerHandler = std::function<std::string(const std::string&, const std::unordered_map<std::string, std::string>&)>
using ErrorHandler = std::function<void(const std::exception&)>

Detailed Description

template<typename Protocol>
class TgBot::TgWebhookServer< Protocol >

Definition at line 20 of file TgWebhookServer.h.

Constructor & Destructor Documentation

◆ TgWebhookServer() [1/3]

template<typename Protocol>
TgBot::TgWebhookServer< Protocol >::TgWebhookServer ( const typename boost::asio::basic_socket_acceptor< Protocol >::endpoint_type & endpoint,
const typename HttpServer< Protocol >::ServerHandler & handler )
delete

◆ TgWebhookServer() [2/3]

template<typename Protocol>
TgBot::TgWebhookServer< Protocol >::TgWebhookServer ( const typename boost::asio::basic_socket_acceptor< Protocol >::endpoint_type & endpoint,
std::string path,
const EventHandler & eventHandler )
inline

Definition at line 25 of file TgWebhookServer.h.

◆ TgWebhookServer() [3/3]

template<typename Protocol>
TgBot::TgWebhookServer< Protocol >::TgWebhookServer ( const typename boost::asio::basic_socket_acceptor< Protocol >::endpoint_type & endpoint,
const Bot & bot )
inline

Definition at line 35 of file TgWebhookServer.h.


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