Add zts_core_query_ and world sub-APIs. Adjust event subsystem
This commit is contained in:
@@ -18,7 +18,7 @@ int main(int argc, char** argv)
|
||||
exit(0);
|
||||
}
|
||||
char* storage_path = argv[1];
|
||||
uint64_t net_id = strtoull(argv[2], NULL, 16);
|
||||
long long int net_id = strtoull(argv[2], NULL, 16); // At least 64 bits
|
||||
char* remote_addr = argv[3];
|
||||
int remote_port = atoi(argv[4]);
|
||||
int err = ZTS_ERR_OK;
|
||||
@@ -42,7 +42,7 @@ int main(int argc, char** argv)
|
||||
zts_util_delay(50);
|
||||
}
|
||||
|
||||
printf("Public identity (node ID) is %llx\n", zts_node_get_id());
|
||||
printf("Public identity (node ID) is %llx\n", (long long int)zts_node_get_id());
|
||||
|
||||
printf("Joining network %llx\n", net_id);
|
||||
if (zts_net_join(net_id) != ZTS_ERR_OK) {
|
||||
@@ -52,7 +52,7 @@ int main(int argc, char** argv)
|
||||
|
||||
printf("Don't forget to authorize this device in my.zerotier.com or the web API!\n");
|
||||
printf("Waiting for join to complete\n");
|
||||
while (zts_net_count() < 1) {
|
||||
while (! zts_net_transport_is_ready(net_id)) {
|
||||
zts_util_delay(50);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user