CppWAMP
C++11 client library for the WAMP protocol
subscriber.hpp
1
/*------------------------------------------------------------------------------
2
Copyright Butterfly Energy Systems 2014-2015, 2022.
3
Distributed under the Boost Software License, Version 1.0.
4
http://www.boost.org/LICENSE_1_0.txt
5
------------------------------------------------------------------------------*/
6
7
#ifndef CPPWAMP_INTERNAL_SUBSCRIBER_HPP
8
#define CPPWAMP_INTERNAL_SUBSCRIBER_HPP
9
10
#include <functional>
11
#include <memory>
12
#include "../subscription.hpp"
13
14
namespace
wamp
15
{
16
17
class
Subscription;
18
19
namespace
internal
20
{
21
22
//------------------------------------------------------------------------------
23
class
Subscriber
24
{
25
public
:
26
using
WeakPtr = std::weak_ptr<Subscriber>;
27
28
virtual
~Subscriber() {}
29
30
virtual
void
safeUnsubscribe(
const
Subscription&) = 0;
31
};
32
33
}
// namespace internal
34
35
}
// namespace wamp
36
37
#endif // CPPWAMP_INTERNAL_SUBSCRIBER_HPP
wamp
Definition:
anyhandler.hpp:36
cppwamp
internal
subscriber.hpp
Generated on Sat Aug 13 2022 20:54:38 for CppWAMP by
1.8.17