66 static bool DiscoverSKServer(wxString &ip,
int &port,
int tSec);
67 static bool DiscoverSKServer(std::string serviceIdent, wxString &ip,
70 void SetThreadRunning(
bool active) { m_threadActive = active; }
71 void SetThreadRunFlag(
int run) { m_Thread_run_flag = run; }
72 void ResetWatchdog() { m_dog_value = N_DOG_TIMEOUT; }
73 void SetWatchdog(
int n) { m_dog_value = n; }
76 void handleUpdate(
const rapidjson::Value &update);
77 void updateItem(
const rapidjson::Value &item, wxString &sfixtime);
80 void CloseWebSocket();
81 bool IsThreadRunning() {
return m_threadActive == 1; }
86 std::string m_context;
88 std::atomic_int m_Thread_run_flag;
89 std::atomic_int m_threadActive;
94 static void initIXNetSystem();
96 static void uninitIXNetSystem();
100 wxIPV4address GetAddr()
const {
return m_addr; }
104 wxTimer m_socketread_watchdog_timer;
105 wxTimer *GetSocketThreadWatchdogTimer() {
106 return &m_socketread_watchdog_timer;
109 OCPN_WebSocketMessageHandler *m_eventHandler;
114 bool SetOutputSocketOptions(wxSocketBase *sock);