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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors