1 #ifndef RESULTS_H 2 #define RESULTS_H 3 4 #include <time.h> 5 #include "mutex.h" 6 7 class results 8 { 9 public: 10 results(); 11 virtual ~results(); 12 13 void error(); 14 void dataBytes(int bytes); 15 void message(); 16 void connection(); 17 #ifdef USE_SSL 18 void connect_ssl(); 19 #endif 20 21 void print(); 22 23 protected: 24 virtual void childPrint(); 25 int m_connections; 26 #ifdef USE_SSL 27 int m_ssl_connections; 28 #endif 29 30 void m_print(); 31 32 Mutex m_mut; 33 private: 34 35 unsigned int m_msgs; 36 unsigned long long m_bytes; 37 unsigned int m_errors; 38 }; 39 40 #endif