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< Protocol >

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
 
 TgWebhookServer (const typename boost::asio::basic_socket_acceptor< boost::asio::ip::tcp >::endpoint_type &endpoint, std::string path, const EventHandler &eventHandler)
 
 TgWebhookServer (const typename boost::asio::basic_socket_acceptor< boost::asio::ip::tcp >::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 ()
 Starts receiving new connections.
 
void stop ()
 Stops receiving new connections.
 

Additional Inherited Members

- Public Types inherited from TgBot::HttpServer< 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< Protocol >
void _startAccept ()
 
- Protected Attributes inherited from TgBot::HttpServer< Protocol >
boost::asio::io_service _ioService
 
boost::asio::basic_socket_acceptor< Protocol > _acceptor
 
boost::asio::basic_stream_socket< Protocol > _socket
 
const ServerHandler _handler
 
const HttpParser _httpParser
 

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 )
inline

Definition at line 17 of file TgWebhookTcpServer.h.

◆ TgWebhookTcpServer() [2/2]

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

Definition at line 23 of file TgWebhookTcpServer.h.


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