#include <iostream>
#include <vector>
-#include "ia_auth_c.h"
-#include "common.h"
+#include "stg/ia.h"
+#include "stg/common.h"
#include "web.h"
#include "settings_impl.h"
}
}
-clnp = new IA_CLIENT_PROT(settings.GetServerName(), settings.GetServerPort(), settings.GetLocalPort());
+clnp = new IA_CLIENT_PROT(settings.GetServerName(), settings.GetServerPort(), settings.GetLocalName(), settings.GetLocalPort());
if (!settings.GetNoWeb())
{
while (1)
{
- usleep(200000);
+ struct timespec ts = {0, 200000000};
+ nanosleep(&ts, NULL);
char state[20];