From edff13dcae3c316f7a454fcd3b415c0ef2e4002c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 17 Sep 2014 09:50:49 -0700 Subject: More control/ refactoring --- control/NodeControlService.hpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'control/NodeControlService.hpp') 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); -- cgit v1.2.3