diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-26 08:20:03 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-26 08:20:03 -0700 |
| commit | 90e1262a8b607f35af0eade34eba7a49217cb7ed (patch) | |
| tree | c23401c4afaff3a90e083fd69c133735a27b47f4 /node/Network.hpp | |
| parent | 246f86dad356f660977617372cc9cc663111d821 (diff) | |
| download | infinitytier-90e1262a8b607f35af0eade34eba7a49217cb7ed.tar.gz infinitytier-90e1262a8b607f35af0eade34eba7a49217cb7ed.zip | |
More refactoring to remove old Dictionary dependencies.
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index 5d33151b..9d280fbf 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -151,14 +151,12 @@ public: /** * Set or update this network's configuration * - * This decodes a network configuration in key=value dictionary form, - * applies it if valid, and persists it to disk if saveToDisk is true. - * - * @param conf Configuration in key/value dictionary form + * @param confBytes Network configuration in old-style Dictionary or new-style serialized format + * @param confLen Length of network configuration in bytes * @param saveToDisk IF true (default), write config to disk * @return 0 -- rejected, 1 -- accepted but not new, 2 -- accepted new config */ - int setConfiguration(const Dictionary &conf,bool saveToDisk = true); + int setConfiguration(const void *confBytes,unsigned int confLen,bool saveToDisk); /** * Set netconf failure to 'access denied' -- called in IncomingPacket when controller reports this |
