More IPC work.

This commit is contained in:
Adam Ierymenko 2014-03-19 16:05:03 -07:00
parent 0d847d9410
commit 6fdb360e2a
4 changed files with 22 additions and 6 deletions

View file

@ -154,6 +154,10 @@ static int main(int argc,char **argv)
try {
volatile bool done = false;
Node::NodeControlClient client(hp,&_CBresultHandler,(void *)&done);
if (client.error()) {
fprintf(stderr,"%s: fatal error: unable to connect (is ZeroTier One running?)"ZT_EOL_S,argv[0]);
return 1;
}
client.send(query.c_str());
while (!done)
Thread::sleep(250); // ghetto