Updated zts_start* API naming convention

This commit is contained in:
Joseph Henry
2017-10-12 12:07:33 -07:00
parent b78662dd9b
commit 9473b6f74a
17 changed files with 262 additions and 49 deletions

View File

@@ -9,7 +9,7 @@ struct ZT {
}
static void simpleStart(const char *path, const char *nwid) {
zts_simple_start(path, nwid);
zts_startjoin(path, nwid);
}
static void stop() {

View File

@@ -11,7 +11,7 @@
int main()
{
printf("waiting for libzt to come online...\n");
zts_simple_start("dlldir", "17d709436c2c5367");
zts_startjoin("dlldir", "17d709436c2c5367");
printf("started. now performing a socket call\n");
int fd = zts_socket(AF_INET, SOCK_STREAM, 0);
printf("fd=%d\n", fd);

View File

@@ -376,7 +376,7 @@ int main(int argc, char **argv)
// Start ZeroTier Node
// Join Network which contains resources we need to proxy
DEBUG_INFO("waiting for libzt to come online");
zts_simple_start(path.c_str(), nwid.c_str());
zts_startjoin(path.c_str(), nwid.c_str());
ZeroTier::ZTProxy *proxy = new ZeroTier::ZTProxy(proxy_listen_port, nwid, path, internal_addr, internal_port, dns_nameserver);