#include "tables.h"
#include "types.h"
-extern "C" PLUGIN * GetPlugin();
-
class USER;
class SETTINGS;
class SMUX;
static void * Runner(void * d);
void Run();
bool PrepareNet();
+ bool Reconnect();
bool DispatchPDUs(const SMUX_PDUs_t * pdus);
pthread_mutex_t mutex;
bool running;
bool stopped;
+ bool needReconnect;
+
+ time_t lastReconnectTry;
+ unsigned reconnectTimeout;
int sock;
smux.UpdateTables();
}
-extern "C" PLUGIN * GetPlugin();
-
#endif