Ping.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef _SQUID_TOOLS_CLIENT_PING_H
10 #define _SQUID_TOOLS_CLIENT_PING_H
11 
16 namespace Ping
17 {
18 
20 class TheConfig
21 {
22 public:
23  TheConfig() : enable(false), count(0), interval(1*1000) {}
24 
26  void usage();
27 
32  bool parseCommandOpts(int argc, char *argv[], int c, int &optIndex);
33 
34  bool enable;
35  int count;
36  int interval;
37 };
38 
39 extern TheConfig Config;
40 
42 uint32_t Init();
43 
45 inline bool LoopDone(int i)
46 {
48 }
49 
51 void TimerStart();
52 
55 void TimerStop(size_t fsize);
56 
58 void DisplayStats();
59 
60 } // namespace Ping
61 
62 #endif /* _SQUID_TOOLS_CLIENT_PING_H */
63 
Ping::TheConfig Config
Definition: Ping.cc:24
int count
Definition: Ping.h:35
int i
Definition: membanger.c:49
void usage()
display Ping Options command line help to stderr
Definition: Ping.cc:155
bool enable
Definition: Ping.h:34
bool LoopDone(int i)
whether ping loop is completed at the given iteration.
Definition: Ping.h:45
int interval
Definition: Ping.h:36
uint32_t Init()
initialize the squidclient ping mode
Definition: Ping.cc:54
void TimerStart()
start timing a new transaction
Definition: Ping.cc:79
void TimerStop(size_t fsize)
Definition: Ping.cc:92
parameters controlling 'ping' mode message looping.
Definition: Ping.h:20
void DisplayStats()
display summary of ping data collected
Definition: Ping.cc:141
bool parseCommandOpts(int argc, char *argv[], int c, int &optIndex)
Definition: Ping.cc:167
#define false
Definition: GnuRegex.c:233

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors