The class is handling the remote configuration requests More...
#include <config.h>
Public Member Functions | |
| virtual int | registerVar (ConfigVariable *cv) |
| registerVar | |
| int | configAddCommand () |
| int | remoteCall (std::string variableName, std::string variableValue, std::string nodeList) |
Static Public Member Functions | |
| static int | remoteconfig_command_fn (ShellClient &sc, void *data, int argc, char **argv) |
| static int | requestHandler (void *data, ReadMarshalStream *msIn, WriteMarshalStream *msOut, const awds::NodeId &src) |
| requestHandler | |
| static int | responseHandler (void *data, ReadMarshalStream *msIn, const awds::NodeId &src) |
| responseHandler | |
| static void | requestCreator (void *data, WriteMarshalStream *msOut) |
| requestCreator | |
| static void | finishedHandler (void *data) |
| finishedHandler | |
Protected Types | |
|
typedef std::map< std::string, ConfigVariable * > | VariablesMap |
Protected Attributes | |
| VariablesMap | remoteVariables |
|
std::map< gea::AbsTime, unsigned int > | requests |
|
std::map< gea::AbsTime, std::string > | response |
The class is handling the remote configuration requests
| void Config::finishedHandler | ( | void * | data | ) | [static] |
finishedHandler
This function is the callback if the broadcast is complete
| data | the data Provided through the spp call |
| int Config::registerVar | ( | ConfigVariable * | cv | ) | [virtual] |
registerVar
This function registers the ConfigVariable at the Configuration class
| cv | the ConfigVariable |
| void Config::requestCreator | ( | void * | data, | |
| WriteMarshalStream * | msOut | |||
| ) | [static] |
requestCreator
This function builds/marshals the message to be send to the awds Nodes
| data | the data to be processed | |
| msOut | the stream to write to |
| int Config::requestHandler | ( | void * | data, | |
| ReadMarshalStream * | msIn, | |||
| WriteMarshalStream * | msOut, | |||
| const awds::NodeId & | src | |||
| ) | [static] |
requestHandler
This Function Handles the incoming requests reads from msIn und writes the outgoing message to msOut
| data | the data send through the SPP module | |
| msIn | the incoming marshalstream | |
| msOut | the outboing marshalstream | |
| src | the origin of the message |
| int Config::responseHandler | ( | void * | data, | |
| ReadMarshalStream * | msIn, | |||
| const awds::NodeId & | src | |||
| ) | [static] |
responseHandler
This function handels the responses of the (remote) nodes
| data | the ConfigVariable | |
| msIn | the stream containing the message | |
| src | the Origin of the Message |
1.5.8