CommandServer manages threaded command connections.
More...
#include <commandserver.h>
CommandServer manages threaded command connections.
Command Server which manages command connections in seperate threads
Definition at line 84 of file commandserver.h.
CommandServer::CommandServer |
( |
QObject * |
parent = 0 | ) |
|
CommandServer::~CommandServer |
( |
| ) |
|
|
virtual |
void RTSERVER::CommandServer::closeCommandThreads |
( |
| ) |
|
|
signal |
Signal which triggers closing all command clients
Returns the command parser.
- Returns
- the command parser.
Definition at line 175 of file commandserver.h.
void CommandServer::incomingConnection |
( |
qintptr |
socketDescriptor | ) |
|
|
protected |
void CommandServer::incommingCommand |
( |
QString |
p_sCommand, |
|
|
qint32 |
p_iThreadID |
|
) |
| |
Slot which is called when a new command is available.
- Parameters
-
[in] | p_sCommand | Raw command |
[in] | p_iThreadID | ID of the thread which received the command. |
Definition at line 92 of file commandserver.cpp.
void CommandServer::prepareReply |
( |
QString |
p_sReply, |
|
|
Command |
p_command |
|
) |
| |
Is called to prepare the reply
- Parameters
-
[in] | p_sReply | The reply which should be send back |
[in] | p_command | Comman which evoked the reply |
Definition at line 147 of file commandserver.cpp.
void CommandServer::registerCommandManager |
( |
CommandManager & |
p_commandManager | ) |
|
Registers a CommandManager (Observer) at CommandParser (Subject) to include in the chain of notifications
- Parameters
-
[in] | p_commandManager | Command Manager to register. |
Definition at line 135 of file commandserver.cpp.
void RTSERVER::CommandServer::replyCommand |
( |
QString |
p_blockReply, |
|
|
qint32 |
p_iID |
|
) |
| |
|
signal |
Reply to a command
- Parameters
-
[in] | p_blockReply | The reply data |
[in] | p_iID | ID of the client thread to identify the target. |
The documentation for this class was generated from the following files:
- D:/Users/Christoph/GitHub/mne-cpp/applications/mne_rt_server/mne_rt_server/commandserver.h
- D:/Users/Christoph/GitHub/mne-cpp/applications/mne_rt_server/mne_rt_server/commandserver.cpp