CppWAMP
C++11 client library for the WAMP protocol
caller.hpp
1 /*------------------------------------------------------------------------------
2  Copyright Butterfly Energy Systems 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_CALLER_HPP
8 #define CPPWAMP_INTERNAL_CALLER_HPP
9 
10 #include <memory>
11 #include <string>
12 #include "../wampdefs.hpp"
13 
14 namespace wamp
15 {
16 
17 namespace internal
18 {
19 
20 //------------------------------------------------------------------------------
21 class Caller
22 {
23 public:
24  using WeakPtr = std::weak_ptr<Caller>;
25 
26  virtual ~Caller() {}
27 
28  virtual void cancelCall(RequestId, CallCancelMode) = 0;
29 
30  virtual void safeCancelCall(RequestId, CallCancelMode) = 0;
31 };
32 
33 } // namespace internal
34 
35 } // namespace wamp
36 
37 #endif // CPPWAMP_INTERNAL_CALLER_HPP
wamp::RequestId
int64_t RequestId
Ephemeral ID associated with a WAMP request.
Definition: wampdefs.hpp:23
wamp
Definition: anyhandler.hpp:36
wamp::CallCancelMode
CallCancelMode
Enumerates the possible call cancelling modes.
Definition: wampdefs.hpp:49