zt_get_address() implementation

This commit is contained in:
Joseph Henry
2016-08-08 12:31:06 -07:00
parent d4b88afa90
commit e1fb64bc6f
7 changed files with 77 additions and 17 deletions

View File

@@ -20,6 +20,14 @@
#define ZT_ONESERVICE_HPP
#include <string>
#include <map>
// Include the right tap device driver for this platform -- add new platforms here
#ifdef SDK
// In network containers builds, use the virtual netcon endpoint instead of a tun/tap port driver
#include "../src/SDK_EthernetTap.hpp"
namespace ZeroTier { typedef NetconEthernetTap EthernetTap; }
#endif // not ZT_SDK so pick a tap driver
namespace ZeroTier {
@@ -146,6 +154,11 @@ public:
*/
virtual std::string givenHomePath() = 0;
/*
*
*/
virtual std::map< uint64_t,EthernetTap * > getTaps() = 0;
/**
* @return True if service is still running
*/