PingData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_PINGDATA_H
10 #define SQUID_SRC_PINGDATA_H
11 
12 #include "mem/PoolingAllocator.h"
13 
14 #include <map>
15 
16 class PeerSelector;
18 
19 typedef std::pair<const timeval, PeerSelector *> WaitingPeerSelector;
21 typedef std::multimap<timeval, PeerSelector *, std::less<timeval>, PoolingAllocator<WaitingPeerSelector> > WaitingPeerSelectors;
22 typedef WaitingPeerSelectors::iterator WaitingPeerSelectorPosition;
23 
25 class ping_data
26 {
27 
28 public:
29  ping_data();
30 
33  timeval deadline() const;
34 
35  struct timeval start;
36 
37  struct timeval stop;
38  int n_sent;
39  int n_recv;
41  int timeout; /* msec */
42  int timedout;
43  int w_rtt;
44  int p_rtt;
45 
46 private:
50 };
51 
52 #endif /* SQUID_SRC_PINGDATA_H */
53 
int n_replies_expected
Definition: PingData.h:40
timeval deadline() const
int n_recv
Definition: PingData.h:39
WaitingPeerSelectorPosition monitorRegistration
maintained by PeerSelectorPingMonitor
Definition: PingData.h:49
struct timeval stop
Definition: PingData.h:37
WaitingPeerSelectors::iterator WaitingPeerSelectorPosition
Definition: PingData.h:22
ICP probing of cache_peers during peer selection.
Definition: PingData.h:25
std::multimap< timeval, PeerSelector *, std::less< timeval >, PoolingAllocator< WaitingPeerSelector > > WaitingPeerSelectors
waiting PeerSelector objects, ordered by their absolute deadlines
Definition: PingData.h:21
int p_rtt
Definition: PingData.h:44
friend PeerSelectorPingMonitor
Definition: PingData.h:47
struct timeval start
Definition: PingData.h:35
int w_rtt
Definition: PingData.h:43
STL Allocator that uses Squid memory pools for memory management.
int n_sent
Definition: PingData.h:38
int timeout
Definition: PingData.h:41
std::pair< const timeval, PeerSelector * > WaitingPeerSelector
Definition: PingData.h:17
int timedout
Definition: PingData.h:42

 

Introduction

Documentation

Support

Miscellaneous