From b22c20c4db8c35eaee99075d055f74697c5805b8 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:33:59 +0300 Subject: Docs --- docs/d3/d9a/_tg_webhook_local_server_8h.html | 100 +++++++++++++++++++++ .../d3/d9a/_tg_webhook_local_server_8h_source.html | 100 +++++++++++++++++++++ 2 files changed, 200 insertions(+) create mode 100644 docs/d3/d9a/_tg_webhook_local_server_8h.html create mode 100644 docs/d3/d9a/_tg_webhook_local_server_8h_source.html (limited to 'docs/d3/d9a') diff --git a/docs/d3/d9a/_tg_webhook_local_server_8h.html b/docs/d3/d9a/_tg_webhook_local_server_8h.html new file mode 100644 index 0000000..15dd021 --- /dev/null +++ b/docs/d3/d9a/_tg_webhook_local_server_8h.html @@ -0,0 +1,100 @@ + + + + + + + +tgbot-cpp: include/tgbot/net/TgWebhookLocalServer.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgWebhookLocalServer.h File Reference
+
+ +
+ + + + diff --git a/docs/d3/d9a/_tg_webhook_local_server_8h_source.html b/docs/d3/d9a/_tg_webhook_local_server_8h_source.html new file mode 100644 index 0000000..d80d982 --- /dev/null +++ b/docs/d3/d9a/_tg_webhook_local_server_8h_source.html @@ -0,0 +1,100 @@ + + + + + + + +tgbot-cpp: include/tgbot/net/TgWebhookLocalServer.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgWebhookLocalServer.h
+
+
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  */
22 
23 #ifndef TGBOT_TGWEBHOOKTCPSERVER_H
24 #define TGBOT_TGWEBHOOKTCPSERVER_H
25 
26 #ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS
27 
29 
30 namespace TgBot {
31 
36 class TgWebhookLocalServer : public TgWebhookServer<boost::asio::local::stream_protocol> {
37 
38 public:
39  TgWebhookLocalServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>& acceptor, const std::string& path, EventHandler* eventHandler) = delete;
40 
41  TgWebhookLocalServer(const std::string& path, const EventHandler* eventHandler) :
42  TgWebhookServer<boost::asio::local::stream_protocol>(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(new boost::asio::local::stream_protocol::acceptor(_ioService, boost::asio::local::stream_protocol::endpoint(path))), path, eventHandler)
43  {
44  }
45 
46  TgWebhookLocalServer(const std::string& path, const Bot& bot) : TgWebhookLocalServer(path, &bot.getEventHandler()) {
47  }
48 };
49 
50 }
51 
52 #endif //BOOST_ASIO_HAS_LOCAL_SOCKETS
53 
54 #endif //TGBOT_TGWEBHOOKTCPSERVER_H
Definition: Api.h:44
+ +
+
+ + + + -- cgit v1.2.3