Ping.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
16namespace Ping
17{
18
21{
22public:
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;
37};
38
39extern TheConfig Config;
40
42uint32_t Init();
43
45inline bool LoopDone(int i)
46{
48}
49
51void TimerStart();
52
55void TimerStop(size_t fsize);
56
58void DisplayStats();
59
60} // namespace Ping
61
62#endif /* _SQUID_TOOLS_CLIENT_PING_H */
63
#define false
Definition: GnuRegex.c:240
parameters controlling 'ping' mode message looping.
Definition: Ping.h:21
void usage()
display Ping Options command line help to stderr
Definition: Ping.cc:155
bool parseCommandOpts(int argc, char *argv[], int c, int &optIndex)
Definition: Ping.cc:167
int count
Definition: Ping.h:35
bool enable
Definition: Ping.h:34
int interval
Definition: Ping.h:36
Definition: Ping.cc:23
bool LoopDone(int i)
whether ping loop is completed at the given iteration.
Definition: Ping.h:45
uint32_t Init()
initialize the squidclient ping mode
Definition: Ping.cc:54
void TimerStop(size_t fsize)
Definition: Ping.cc:92
Ping::TheConfig Config
Definition: Ping.cc:24
void TimerStart()
start timing a new transaction
Definition: Ping.cc:79
void DisplayStats()
display summary of ping data collected
Definition: Ping.cc:141

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors