tgbot-cpp
Loading...
Searching...
No Matches
TgWebhookTcpServer.h
Go to the documentation of this file.
1
#ifndef TGBOT_TGWEBHOOKTCPSERVER_H
2
#define TGBOT_TGWEBHOOKTCPSERVER_H
3
4
#include "
tgbot/net/TgWebhookServer.h
"
5
6
#include <string>
7
8
namespace
TgBot
{
9
14
class
TgWebhookTcpServer
:
public
TgWebhookServer
<boost::asio::ip::tcp> {
15
16
public
:
17
TgWebhookTcpServer
(
unsigned
short
port,
const
std::string& path,
const
EventHandler
& eventHandler)
18
:
TgWebhookServer
<boost::asio::ip::tcp>(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port),
19
path, eventHandler)
20
{
21
}
22
23
TgWebhookTcpServer
(
unsigned
short
port,
const
Bot
& bot)
24
:
TgWebhookServer
<boost::asio::ip::tcp>(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port),
25
bot)
26
{
27
}
28
};
29
30
}
31
32
#endif
//TGBOT_TGWEBHOOKTCPSERVER_H
TgWebhookServer.h
TgBot::Bot
This object holds other objects specific for this bot instance.
Definition
Bot.h:21
TgBot::EventHandler
Definition
EventHandler.h:14
TgBot::TgWebhookServer
Definition
TgWebhookServer.h:16
TgBot::TgWebhookTcpServer
Definition
TgWebhookTcpServer.h:14
TgBot::TgWebhookTcpServer::TgWebhookTcpServer
TgWebhookTcpServer(unsigned short port, const std::string &path, const EventHandler &eventHandler)
Definition
TgWebhookTcpServer.h:17
TgBot::TgWebhookTcpServer::TgWebhookTcpServer
TgWebhookTcpServer(unsigned short port, const Bot &bot)
Definition
TgWebhookTcpServer.h:23
TgBot
Definition
Api.h:40
include
tgbot
net
TgWebhookTcpServer.h
Generated on Tue Jun 11 2024 00:46:34 for tgbot-cpp by
1.11.0