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

This class setups HTTP server for receiving Telegram Update objects from unix socket. More...

#include <TgWebhookLocalServer.h>

Inheritance diagram for TgBot::TgWebhookLocalServer:
TgBot::TgWebhookServer< boost::asio::local::stream_protocol > TgBot::HttpServer< boost::asio::local::stream_protocol >

Public Member Functions

 TgWebhookLocalServer (const std::string &unixSocketPath, const std::string &path, const EventHandler &eventHandler)
 TgWebhookLocalServer (const std::string &unixSocketPath, const Bot &bot)
Public Member Functions inherited from TgBot::TgWebhookServer< boost::asio::local::stream_protocol >
 TgWebhookServer (const typename boost::asio::basic_socket_acceptor< boost::asio::local::stream_protocol >::endpoint_type &endpoint, const typename HttpServer< boost::asio::local::stream_protocol >::ServerHandler &handler)=delete
Public Member Functions inherited from TgBot::HttpServer< boost::asio::local::stream_protocol >
 HttpServer (const typename boost::asio::basic_socket_acceptor< boost::asio::local::stream_protocol >::endpoint_type &endpoint, ServerHandler handler)
void start ()
 Starts receiving new connections.
void stop ()
 Stops receiving new connections.

Additional Inherited Members

Public Types inherited from TgBot::HttpServer< boost::asio::local::stream_protocol >
typedef std::function< std::string(const std::string &, const std::unordered_map< std::string, std::string > &)> ServerHandler
Protected Member Functions inherited from TgBot::HttpServer< boost::asio::local::stream_protocol >
void _startAccept ()
Protected Attributes inherited from TgBot::HttpServer< boost::asio::local::stream_protocol >
boost::asio::io_context _ioService
boost::asio::basic_socket_acceptor< boost::asio::local::stream_protocol > _acceptor
boost::asio::basic_stream_socket< boost::asio::local::stream_protocol > _socket
const ServerHandler _handler
const HttpParser _httpParser

Detailed Description

This class setups HTTP server for receiving Telegram Update objects from unix socket.

Definition at line 17 of file TgWebhookLocalServer.h.

Constructor & Destructor Documentation

◆ TgWebhookLocalServer() [1/2]

TgBot::TgWebhookLocalServer::TgWebhookLocalServer ( const std::string & unixSocketPath,
const std::string & path,
const EventHandler & eventHandler )
inline

Definition at line 20 of file TgWebhookLocalServer.h.

◆ TgWebhookLocalServer() [2/2]

TgBot::TgWebhookLocalServer::TgWebhookLocalServer ( const std::string & unixSocketPath,
const Bot & bot )
inline

Definition at line 26 of file TgWebhookLocalServer.h.


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