Add some TRACE around pinging (for now), and refactor service/One to just run in the foreground as some platforms may not require threads at all.
This commit is contained in:
parent
08a11a6f32
commit
9e651b39e4
7 changed files with 110 additions and 99 deletions
2
main.cpp
2
main.cpp
|
@ -37,7 +37,7 @@ using namespace ZeroTier;
|
|||
int main(int argc,char **argv)
|
||||
{
|
||||
One *one = One::newInstance("/tmp/foo",12345);
|
||||
one->waitForTermination();
|
||||
one->run();
|
||||
printf("termination reason: %d, message: %s\n",(int)one->reasonForTermination(),one->fatalErrorMessage().c_str());
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue