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:
Adam Ierymenko 2015-04-10 11:40:45 -07:00
parent 08a11a6f32
commit 9e651b39e4
7 changed files with 110 additions and 99 deletions

View file

@ -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;
}