reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
KurentoManager.hxx
Go to the documentation of this file.
1#if !defined(KurentoManager_hxx)
2#define KurentoManager_hxx
3
4#include <chrono>
5#include <string>
6#include <map>
7
8#include <websocketpp/config/asio_no_tls.hpp>
9#include <websocketpp/server.hpp>
10
11#include "KurentoConnection.hxx"
12
13namespace kurento
14{
15
17{
18 public:
19 KurentoManager(std::chrono::milliseconds timeout, std::chrono::milliseconds retryInterval);
20 virtual ~KurentoManager();
21
22 // call this regularly from the event loop to process
23 // incoming network activity and any queued requests
24 void process();
25
27
28 private:
29 std::chrono::milliseconds mTimeout;
30 std::chrono::milliseconds mRetryInterval;
31 websocketpp::lib::asio::io_service mAsio;
32 websocketpp::client<websocketpp::config::asio_client> mWSClient;
33
34 std::map<std::string, KurentoConnection::ptr> mConnections;
35
36};
37
38}
39
40#endif
41
42/* ====================================================================
43
44 Copyright (c) 2021, Software Freedom Institute https://softwarefreedom.institute
45 Copyright (c) 2021, Daniel Pocock https://danielpocock.com
46 All rights reserved.
47
48 Redistribution and use in source and binary forms, with or without
49 modification, are permitted provided that the following conditions are
50 met:
51
52 1. Redistributions of source code must retain the above copyright
53 notice, this list of conditions and the following disclaimer.
54
55 2. Redistributions in binary form must reproduce the above copyright
56 notice, this list of conditions and the following disclaimer in the
57 documentation and/or other materials provided with the distribution.
58
59 3. Neither the name of Plantronics nor the names of its contributors
60 may be used to endorse or promote products derived from this
61 software without specific prior written permission.
62
63 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
64 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
65 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
66 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
67 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
68 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
69 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
70 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
71 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
72 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
73 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
74
75 ==================================================================== */
std::shared_ptr< KurentoConnection > ptr
KurentoConnection::ptr getKurentoConnection(const std::string &uri, KurentoConnectionObserver &observer)
This class is used in the logging subsystem to identify logging messages generated from the Kurento c...
void list()
Definition userAdmin.cxx:66