Got the subscription event scope parameter added.
This commit is contained in:
1 parent
6cf321ceb4
commit
d13e3f9fb5
9 files changed
+97
-48
No files matched your search
+5
-2
@@ -12,8 +12,8 @@ namespace core {
|
||||
class Subscription {
|
||||
|
||||
public:
|
||||
Subscription(std::string id);
|
||||
Subscription(std::string id, TCPSession &session);
|
||||
Subscription(std::string id, std::string mode = "*AUTHOR");
|
||||
Subscription(std::string id, TCPSession &session, std::string mode = "*AUTHOR");
|
||||
virtual ~Subscription();
|
||||
|
||||
int subscribe(TCPSession &session);
|
||||
@@ -24,9 +24,12 @@ namespace core {
|
||||
|
||||
int event(std::stringstream &out);
|
||||
|
||||
bool ifSubscriber(TCPSession &session);
|
||||
|
||||
// int processCommand(coreutils::ZString &request, TCPSession &session) override;
|
||||
|
||||
std::string id;
|
||||
std::string mode;
|
||||
TCPSession *owner;
|
||||
|
||||
std::vector<TCPSession *> subscribers;
|
||||
|
||||
Reference in new issue
Block a user