65 static bool DiscoverSKServer(wxString &ip,
int &port,
int tSec);
66 static bool DiscoverSKServer(std::string serviceIdent, wxString &ip,
69 void SetThreadRunning(
bool active) { m_threadActive = active; }
70 void SetThreadRunFlag(
int run) { m_Thread_run_flag = run; }
71 void ResetWatchdog() { m_dog_value = N_DOG_TIMEOUT; }
72 void SetWatchdog(
int n) { m_dog_value = n; }
75 void handleUpdate(
const rapidjson::Value &update);
76 void updateItem(
const rapidjson::Value &item, wxString &sfixtime);
79 void CloseWebSocket();
80 bool IsThreadRunning() {
return m_threadActive == 1; }
85 std::string m_context;
87 std::atomic_int m_Thread_run_flag;
88 std::atomic_int m_threadActive;
93 static void initIXNetSystem();
95 static void uninitIXNetSystem();
99 wxIPV4address GetAddr()
const {
return m_addr; }
103 wxTimer m_socketread_watchdog_timer;
104 wxTimer *GetSocketThreadWatchdogTimer() {
105 return &m_socketread_watchdog_timer;
108 OCPN_WebSocketMessageHandler *m_eventHandler;
113 bool SetOutputSocketOptions(wxSocketBase *sock);