Updated tests

This commit is contained in:
Joseph Henry
2017-05-30 13:17:39 -07:00
parent 673d1b9a09
commit 5ab563ce4c
13 changed files with 321 additions and 121 deletions

View File

@@ -37,6 +37,7 @@
#define ZT_PHY_POLL_INTERVAL 10 // ms
#define ZT_ACCEPT_RECHECK_DELAY 100 // ms (for blocking zts_accept() calls)
#define ZT_CONNECT_RECHECK_DELAY 100 // ms (for blocking zts_connect() calls)
#define ZT_API_CHECK_INTERVAL 500 // ms
#define MAX_PICO_FRAME_RX_BUF_SZ ZT_MAX_MTU * 128
@@ -116,6 +117,11 @@ extern "C" {
*/
void zts_start(const char *path);
/**
* Convenience function: Starts, waits for service, joins one network, waits for address, returns
*/
void zts_simple_start(const char *path, const char *nwid);
/**
* Stops the core ZeroTier service
*/
@@ -367,6 +373,12 @@ namespace ZeroTier
*/
int zts_nsockets();
/*
* Returns maximum number of sockets allowed by network stack
*/
int zts_maxsockets();
int pico_ntimers();
/**
* Don't call this directly, use 'zts_start()'
*/