1 #ifndef __MAIN_THREAD_H__
2 #define __MAIN_THREAD_H__
16 MAIN_THREAD(ADMINS * a, TARIFFS * t, USERS * u, const SETTINGS * s);
21 void Stop() { running = false; };
22 void SetPort(uint16_t p) { port = p; };
23 void SetClasses(ADMINS * a,
34 void SetMaxConnections(unsigned max) { maxConnections = max; };
40 unsigned maxConnections;
45 const SETTINGS * settings;
47 std::list<CONFIG_THREAD> connections;
50 bool WaitConnection();
51 void AcceptConnection();
52 void CleanupThreads();