diff options
Diffstat (limited to 'node/NetworkConfig.hpp')
| -rw-r--r-- | node/NetworkConfig.hpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index e0e9b3a9..54701840 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -71,9 +71,9 @@ namespace ZeroTier { */ class NetworkConfig { -public: friend class SharedPtr<NetworkConfig>; +public: /** * Tuple of multicast rate parameters */ @@ -92,6 +92,17 @@ public: static const MulticastRate DEFAULT_MULTICAST_RATE; /** + * Create an instance of a NetworkConfig for the test network ID + * + * The test network ID is defined as ZT_TEST_NETWORK_ID. This is a + * "fake" network with no real netconf master and default options. + * + * @param self This node's ZT address + * @return Configured instance of netconf for test network ID + */ + static SharedPtr<NetworkConfig> createTestNetworkConfig(const Address &self); + + /** * @param d Dictionary containing configuration * @throws std::invalid_argument Invalid configuration */ |
