diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-18 13:27:46 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-18 13:27:46 -0400 |
| commit | c345c699fd90cbad1ceda6226475d9a27ae47072 (patch) | |
| tree | fc28f68a1a35dfef19bb4ea3d74f93d6249aeb6c /node/NodeConfig.hpp | |
| parent | a677597b44ff94bf1f642f7ef81f926e09439ffd (diff) | |
| download | infinitytier-c345c699fd90cbad1ceda6226475d9a27ae47072.tar.gz infinitytier-c345c699fd90cbad1ceda6226475d9a27ae47072.zip | |
Self test for command bus encode/decode.
Diffstat (limited to 'node/NodeConfig.hpp')
| -rw-r--r-- | node/NodeConfig.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node/NodeConfig.hpp b/node/NodeConfig.hpp index d284062d..309da344 100644 --- a/node/NodeConfig.hpp +++ b/node/NodeConfig.hpp @@ -156,11 +156,13 @@ public: /** * Decode a packet from the control bus * + * Note that 'payload' is appended to. Existing data is not cleared. + * * @param key 32 byte key * @param data Packet data * @param len Packet length * @param conversationId Result parameter filled with conversation ID on success - * @param payload Result parameter filled with payload on success + * @param payload Result parameter to which results are appended * @return True on success, false on invalid packet or packet that failed authentication */ static bool decodeControlMessagePacket(const void *key,const void *data,unsigned int len,unsigned long &conversationId,std::vector<std::string> &payload); |
