mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
work in progress on API refactor
This commit is contained in:
parent
4e9280fc7a
commit
6b4346d1ac
1 changed files with 35 additions and 5 deletions
|
@ -198,11 +198,7 @@ public:
|
||||||
throw();
|
throw();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cause run() to return
|
* Terminate this node, causing run() to return
|
||||||
*
|
|
||||||
* This can be called from a signal handler or another thread to signal a
|
|
||||||
* running node to shut down. Shutdown may take a few seconds, so run()
|
|
||||||
* may not return instantly. Multiple calls are ignored.
|
|
||||||
*
|
*
|
||||||
* @param reason Reason for termination
|
* @param reason Reason for termination
|
||||||
* @param reasonText Text to be returned by reasonForTermination()
|
* @param reasonText Text to be returned by reasonForTermination()
|
||||||
|
@ -216,6 +212,40 @@ public:
|
||||||
void resync()
|
void resync()
|
||||||
throw();
|
throw();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Join a network
|
||||||
|
*
|
||||||
|
* @param nwid 16-digit hex network ID
|
||||||
|
*/
|
||||||
|
bool join(const char *nwid)
|
||||||
|
throw();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Leave a network
|
||||||
|
*
|
||||||
|
* @param nwid 16-digit hex network ID
|
||||||
|
*/
|
||||||
|
bool leave(const char *nwid)
|
||||||
|
throw();
|
||||||
|
|
||||||
|
void listPeers()
|
||||||
|
throw();
|
||||||
|
|
||||||
|
void listNetworks()
|
||||||
|
throw();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check for software updates (if enabled)
|
||||||
|
*/
|
||||||
|
bool updateCheck()
|
||||||
|
throw();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Description of last non-fatal error or empty string if none
|
||||||
|
*/
|
||||||
|
const char *getLastError()
|
||||||
|
throw();
|
||||||
|
|
||||||
static const char *versionString() throw();
|
static const char *versionString() throw();
|
||||||
static unsigned int versionMajor() throw();
|
static unsigned int versionMajor() throw();
|
||||||
static unsigned int versionMinor() throw();
|
static unsigned int versionMinor() throw();
|
||||||
|
|
Loading…
Add table
Reference in a new issue