.
This commit is contained in:
parent
7f4da08ff7
commit
e8d11eb5c5
5 changed files with 16 additions and 61 deletions
|
@ -33,10 +33,10 @@
|
|||
#include "../node/InetAddress.hpp"
|
||||
|
||||
#ifdef ZT_SDK
|
||||
#include "../node/Node.hpp"
|
||||
// Use the virtual netcon endpoint instead of a tun/tap port driver
|
||||
#include "../src/SocketTap.hpp"
|
||||
namespace ZeroTier { typedef SocketTap EthernetTap; }
|
||||
#include "../node/Node.hpp"
|
||||
// Use the virtual netcon endpoint instead of a tun/tap port driver
|
||||
#include "../src/SocketTap.hpp"
|
||||
namespace ZeroTier { typedef SocketTap EthernetTap; }
|
||||
#endif
|
||||
|
||||
namespace ZeroTier {
|
||||
|
@ -147,42 +147,15 @@ public:
|
|||
virtual std::string portDeviceName(uint64_t nwid) const = 0;
|
||||
|
||||
#ifdef ZT_SDK
|
||||
/**
|
||||
* Leaves a network
|
||||
*/
|
||||
virtual void leave(const char *hp) = 0;
|
||||
|
||||
/**
|
||||
* Joins a network
|
||||
*/
|
||||
virtual void leave(const char *hp) = 0;
|
||||
virtual void join(const char *hp) = 0;
|
||||
|
||||
/**
|
||||
* Returns the homePath given by the client application
|
||||
*/
|
||||
virtual std::string givenHomePath() = 0;
|
||||
|
||||
/*
|
||||
* Returns a SocketTap that is associated with the given nwid
|
||||
*/
|
||||
virtual EthernetTap * getTap(uint64_t nwid) = 0;
|
||||
|
||||
/*
|
||||
* Returns a SocketTap that cant function as a route to the specified host
|
||||
*/
|
||||
virtual EthernetTap * getTap(InetAddress &addr) = 0;
|
||||
|
||||
/*
|
||||
* Returns a pointer to the Node
|
||||
*/
|
||||
virtual std::string givenHomePath() = 0;
|
||||
virtual EthernetTap * getTap(uint64_t nwid) = 0;
|
||||
virtual EthernetTap * getTap(InetAddress &addr) = 0;
|
||||
virtual Node * getNode() = 0;
|
||||
|
||||
/*
|
||||
* Delete all SocketTap interfaces
|
||||
*/
|
||||
virtual void removeNets() = 0;
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Terminate background service (can be called from other threads)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue