]> 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 68137d7cbd71486abbcb59ad3f80c64cf3262ad4..f36868063a2b2a02d6ad1c99e00b32e02a454e13 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "pinger.h"
 #include "stg/common.h"
 
 #include "pinger.h"
 #include "stg/common.h"
-#include "stg/stg_locker.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));