diff options
Diffstat (limited to 'service/OneService.hpp')
-rw-r--r-- | service/OneService.hpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/service/OneService.hpp b/service/OneService.hpp index 7a4f7827..4f7b988b 100644 --- a/service/OneService.hpp +++ b/service/OneService.hpp @@ -43,6 +43,9 @@ namespace ZeroTier { * periodically checked and updates are automatically downloaded, verified * against a built-in list of update signing keys, and installed. This is * only supported for certain platforms. + * + * If built with ZT_ENABLE_CLUSTER, a 'cluster' file is checked and if + * present is read to determine the identity of other cluster members. */ class OneService { @@ -89,14 +92,16 @@ public: * Once created, you must call the run() method to actually start * processing. * + * The port is saved to a file in the home path called zerotier-one.port, + * which is used by the CLI and can be used to see which port was chosen if + * 0 (random port) is picked. + * * @param hp Home path - * @param port TCP and UDP port for packets and HTTP control - * @param overrideRootTopology String-serialized root topology (for testing, default: NULL) + * @param port TCP and UDP port for packets and HTTP control (if 0, pick random port) */ static OneService *newInstance( const char *hp, - unsigned int port, - const char *overrideRootTopology = (const char *)0); + unsigned int port); virtual ~OneService(); |