CppWAMP
C++11 client library for the WAMP protocol
|
Go to the documentation of this file.
7 #ifndef CPPWAMP_SUBSCRIPTION_HPP
8 #define CPPWAMP_SUBSCRIPTION_HPP
20 #include "./internal/passkey.hpp"
26 namespace internal {
class Subscriber; }
54 explicit operator bool()
const;
66 void unsubscribe()
const;
69 using SubscriberPtr = std::weak_ptr<internal::Subscriber>;
70 using SlotId = uint64_t;
74 SubscriberPtr subscriber_;
76 SlotId slotId_ = invalidId_;
82 SlotId slotId(internal::PassKey)
const;
132 #ifndef CPPWAMP_COMPILED_LIB
133 #include "internal/subscription.ipp"
136 #endif // CPPWAMP_SUBSCRIPTION_HPP
Limits a Subscription's lifetime to a particular scope.
Definition: subscription.hpp:92
Contains the ErrorOr template class.
Defines macros related to exporting/importing APIs.
int64_t SubscriptionId
Ephemeral ID associated with an topic subscription.
Definition: wampdefs.hpp:24
Definition: anyhandler.hpp:36
Represents a pub/sub event subscription.
Definition: subscription.hpp:41
Contains type definitions related to WAMP IDs and sessions.