SRS-control 0.1.4
 
Loading...
Searching...
No Matches
ConnectionTypeDef.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <boost/asio.hpp>
4
5namespace srs
6{
7 class App;
8}
9
10namespace srs::connection
11{
12 using udp = boost::asio::ip::udp;
13
14 template <typename T>
15 struct is_shared_ptr : std::false_type
16 {
17 };
18 template <typename T>
19 struct is_shared_ptr<std::shared_ptr<T>> : std::true_type
20 {
21 };
22
23 template <typename T>
24 concept SharedConnectionPtr = is_shared_ptr<T>::value and requires(T obj) { obj->get_name(); };
25
26 struct Info
27 {
28 explicit Info(App* control_ptr)
29 : control{ control_ptr }
30 {
31 }
32 App* control = nullptr;
34 };
35
36} // namespace srs::connection
boost::asio::ip::udp udp