]> git.stg.codes - stg.git/blobdiff - stglibs/pinger.lib/pinger.cpp
Hide or add proper copy ctor and assignement operator, initialize
[stg.git] / stglibs / pinger.lib / pinger.cpp
index a33f810bb272169251a40e2e87bc3a9feb3f7e76..f36868063a2b2a02d6ad1c99e00b32e02a454e13 100644 (file)
@@ -15,8 +15,8 @@
 #include <stdio.h>
 
 #include "pinger.h"
 #include <stdio.h>
 
 #include "pinger.h"
-#include "common.h"
-#include "stg_locker.h"
+#include "stg/common.h"
+#include "stg/locker.h"
 
 #ifdef STG_TIME
 extern volatile time_t stgTime;
 
 #ifdef STG_TIME
 extern volatile time_t stgTime;
@@ -30,7 +30,15 @@ STG_PINGER::STG_PINGER(time_t d)
       isRunningSender(false),
       sendSocket(-1),
       recvSocket(-1),
       isRunningSender(false),
       sendSocket(-1),
       recvSocket(-1),
-      pid(0)
+      sendThread(),
+      recvThread(),
+      pmSend(),
+      pid(0),
+      errorStr(),
+      pingIP(),
+      ipToAdd(),
+      ipToDel(),
+      mutex()
 {
     pthread_mutex_init(&mutex, NULL);
     memset(&pmSend, 0, sizeof(pmSend));
 {
     pthread_mutex_init(&mutex, NULL);
     memset(&pmSend, 0, sizeof(pmSend));