Project NSCpp.
More...
#include <HelperChannel.h>
|
std::unordered_set< std::string > | keys |
| Keep the keys of the plugged channels.
|
|
bool | logging |
| Tells if the channel is supposed to log.
|
|
std::string | logKey |
| Key of the log channel's group.
|
|
std::string | key |
| This key must be unique on the server on which it is plugged.
|
|
std::queue< ClientData > | dataQueue |
| This queue is used to store (and read) the data send to the Channel by the Server.
|
|
ChannelState | state |
| Control if the channel is active or not.
|
|
Project NSCpp.
- Author
- Thomas K/BIDI
- Version
- 2.0
◆ HelperChannel()
HelperChannel::HelperChannel |
( |
const std::string & | key, |
|
|
const std::string & | logKey = "logChannel", |
|
|
bool | doLogging = true ) |
Constructor of the HelperChannel.
- Parameters
-
key | Channel's key. |
logKey | Key of the log channel group which can be used to log the debug information (default : "logChannel"). |
doLogging | Tells if the Channel should log its actions. |
◆ addChannelKey()
void HelperChannel::addChannelKey |
( |
const std::string & | key | ) |
|
Used as a callback which listen to the "ServerChannelPlug" group.
When a new Channel is plug, the server emit in a group which call this method to add the newly plugged Channel.
- Parameters
-
◆ removeChannelKey()
void HelperChannel::removeChannelKey |
( |
const std::string & | key | ) |
|
Used as a callback which listen to the "ServerChannelUnplug" group.
When a Channel is unplug, the server emit in a group which call this method to remove the unplugged Channel.
- Parameters
-
◆ run()
void HelperChannel::run |
( |
std::stop_token | st | ) |
|
|
virtual |
Run method of the Channel, process the given events.
Implements Channel.
◆ keys
std::unordered_set<std::string> HelperChannel::keys |
|
protected |
Keep the keys of the plugged channels.
◆ logging
bool HelperChannel::logging |
|
protected |
Tells if the channel is supposed to log.
◆ logKey
std::string HelperChannel::logKey |
|
protected |
Key of the log channel's group.
The documentation for this class was generated from the following file: