diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-17 09:50:49 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-17 09:50:49 -0700 |
| commit | edff13dcae3c316f7a454fcd3b415c0ef2e4002c (patch) | |
| tree | 150368c96d524cf50531e11aa519955a0c296a61 /control/NodeControlService.hpp | |
| parent | e22fae2397f69302820b7a1af2fe2291bb6865e0 (diff) | |
| download | infinitytier-edff13dcae3c316f7a454fcd3b415c0ef2e4002c.tar.gz infinitytier-edff13dcae3c316f7a454fcd3b415c0ef2e4002c.zip | |
More control/ refactoring
Diffstat (limited to 'control/NodeControlService.hpp')
| -rw-r--r-- | control/NodeControlService.hpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/control/NodeControlService.hpp b/control/NodeControlService.hpp index 737878e0..782ff3b8 100644 --- a/control/NodeControlService.hpp +++ b/control/NodeControlService.hpp @@ -38,12 +38,6 @@ #include "../node/NonCopyable.hpp" #include "../node/Thread.hpp" -#ifdef __WINDOWS__ -#define ZT_IPC_ENDPOINT_BASE "\\\\.\\pipe\\ZeroTierOne-" -#else -#define ZT_IPC_ENDPOINT_BASE "/tmp/.ZeroTierOne-" -#endif - namespace ZeroTier { class Node; @@ -65,19 +59,11 @@ public: ~NodeControlService(); - // Background thread waits for node to initialize, then creates IpcListener + // Background thread waits for node to initialize, then creates IpcListener and + // terminates. It also terminates on delete if it hasn't bootstrapped yet. void threadMain() throw(); - /** - * Load (or generate) the authentication token - * - * @param path Full path to authtoken.secret - * @param generateIfNotFound If true, generate and save if not found or readable - * @return Authentication token or empty string on failure - */ - static std::string readOrCreateAuthtoken(const char *path,bool generateIfNotFound); - private: static void _CBcommandHandler(void *arg,IpcConnection *ipcc,IpcConnection::EventType event,const char *commandLine); void _doCommand(IpcConnection *ipcc,const char *commandLine); |
