File: results.h

package info (click to toggle)
postal 0.70
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 540 kB
  • ctags: 525
  • sloc: cpp: 4,131; sh: 289; ansic: 258; makefile: 134
file content (40 lines) | stat: -rw-r--r-- 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef RESULTS_H
#define RESULTS_H

#include <time.h>
#include "mutex.h"

class results
{
public:
  results();
  virtual ~results();

  void error();
  void dataBytes(int bytes);
  void message();
  void connection();
#ifdef USE_SSL
  void connect_ssl();
#endif

  void print();

protected:
  virtual void childPrint();
  int m_connections;
#ifdef USE_SSL
  int m_ssl_connections;
#endif

  void m_print();

  Mutex m_mut;
private:

  int m_msgs;
  int m_bytes;
  int m_errors;
};

#endif