63 static bool DiscoverSKServer(wxString &ip,
int &port,
int tSec);
64 static bool DiscoverSKServer(std::string serviceIdent, wxString &ip,
67 void SetThreadRunning(
bool active) { m_threadActive = active; }
68 void SetThreadRunFlag(
int run) { m_Thread_run_flag = run; }
69 void ResetWatchdog() { m_dog_value = N_DOG_TIMEOUT; }
70 void SetWatchdog(
int n) { m_dog_value = n; }
73 void handleUpdate(
const rapidjson::Value &update);
74 void updateItem(
const rapidjson::Value &item, wxString &sfixtime);
77 void CloseWebSocket();
78 bool IsThreadRunning() {
return m_threadActive == 1; }
81 std::string m_context;
83 std::atomic_int m_Thread_run_flag;
84 std::atomic_int m_threadActive;
89 static void initIXNetSystem();
91 static void uninitIXNetSystem();
95 wxIPV4address GetAddr()
const {
return m_addr; }
99 wxTimer m_socketread_watchdog_timer;
100 wxTimer *GetSocketThreadWatchdogTimer() {
101 return &m_socketread_watchdog_timer;
104 OCPN_WebSocketMessageHandler *m_eventHandler;
109 bool SetOutputSocketOptions(wxSocketBase *sock);