Project NSCpp.
More...
#include <DebugChannel.h>
|
std::ostream & | stream |
| Debug's stream.
|
|
bool | logging |
| Tells if the channel is supposed to log.
|
|
bool | echo |
| Tells if the channel echo back (with the same protocol) to the client.
|
|
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
◆ DebugChannel()
DebugChannel::DebugChannel |
( |
const std::string & | key, |
|
|
std::ostream & | stream, |
|
|
bool | echo = false, |
|
|
const std::string & | logKey = "logChannel", |
|
|
bool | doLogging = true ) |
Constructor of the DebugChannel.
The ostream is the one used to display the information, could be any ostream.
- Parameters
-
key | Channel's key. |
stream | Stream on which the debug will be shown. |
echo | Tells if the Channel echo back the data to the clients. |
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. |
◆ run()
void DebugChannel::run |
( |
std::stop_token | st | ) |
|
|
virtual |
Run method of the Channel, process the given events.
Implements Channel.
◆ echo
Tells if the channel echo back (with the same protocol) to the client.
◆ logging
bool DebugChannel::logging |
|
protected |
Tells if the channel is supposed to log.
◆ logKey
std::string DebugChannel::logKey |
|
protected |
Key of the log channel's group.
◆ stream
std::ostream& DebugChannel::stream |
|
protected |
The documentation for this class was generated from the following file: