neighbors.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/* DEBUG: section 15 Neighbor Routines */
10
11#ifndef SQUID_NEIGHBORS_H_
12#define SQUID_NEIGHBORS_H_
13
14#include "anyp/forward.h"
15#include "enums.h"
16#include "ICP.h"
17#include "lookup_t.h"
18#include "typedefs.h" //for IRCB
19
20class HttpRequest;
22class CachePeer;
23class StoreEntry;
24class PeerSelector;
25
32 StoreEntry *,
33 IRCB * callback,
34 PeerSelector *ps,
35 int *exprep,
36 int *timeout);
37void neighborAddAcl(const char *, const char *);
38
39void neighborsUdpAck(const cache_key *, icp_common_t *, const Ip::Address &);
40void neighborAdd(const char *, const char *, int, int, int, int, int);
41void neighbors_init(void);
42#if USE_HTCP
44#endif
45CachePeer *peerFindByName(const char *);
46CachePeer *peerFindByNameAndPort(const char *, unsigned short);
50void peerClearRRStart(void);
51void peerClearRR(void);
56int neighborUp(const CachePeer * e);
57const char *neighborTypeStr(const CachePeer * e);
58peer_t neighborType(const CachePeer *, const AnyP::Uri &);
62int peerHTTPOkay(const CachePeer *, PeerSelector *);
63
65time_t positiveTimeout(const time_t timeout);
66
68bool peerCanOpenMore(const CachePeer *p);
70bool peerHasConnAvailable(const CachePeer *p);
73
74CachePeer *whichPeer(const Ip::Address &from);
75
76#endif /* SQUID_NEIGHBORS_H_ */
77
Definition: Uri.h:31
htcp_clr_reason
Definition: enums.h:241
peer_t
Definition: enums.h:27
lookup_t
Definition: lookup_t.h:12
peer_t neighborType(const CachePeer *, const AnyP::Uri &)
Definition: neighbors.cc:115
void peerConnectSucceded(CachePeer *)
Definition: neighbors.cc:1305
void peerClearRR(void)
Definition: neighbors.cc:447
const char * neighborTypeStr(const CachePeer *e)
Definition: neighbors.cc:81
void peerNoteDigestLookup(HttpRequest *request, CachePeer *p, lookup_t lookup)
Definition: neighbors.cc:872
void neighborsUdpAck(const cache_key *, icp_common_t *, const Ip::Address &)
Definition: neighbors.cc:1011
void neighborsHtcpClear(StoreEntry *, HttpRequest *, const HttpRequestMethod &, htcp_clr_reason)
Definition: neighbors.cc:1815
CachePeer * getFirstUpParent(PeerSelector *)
Definition: neighbors.cc:288
CachePeer * whichPeer(const Ip::Address &from)
Definition: neighbors.cc:96
int neighborUp(const CachePeer *e)
Definition: neighbors.cc:1163
void peerConnectFailed(CachePeer *)
Definition: neighbors.cc:1298
void neighbors_init(void)
Definition: neighbors.cc:554
CachePeer * getRoundRobinParent(PeerSelector *)
Definition: neighbors.cc:313
void dump_peer_options(StoreEntry *, CachePeer *)
Definition: neighbors.cc:1519
bool peerHasConnAvailable(const CachePeer *p)
Whether the peer has idle or standby connections that can be used now.
Definition: neighbors.cc:232
CachePeer * peerFindByNameAndPort(const char *, unsigned short)
Definition: neighbors.cc:1145
int neighborsCount(PeerSelector *)
Definition: neighbors.cc:273
void neighborAddAcl(const char *, const char *)
int neighborsUdpPing(HttpRequest *, StoreEntry *, IRCB *callback, PeerSelector *ps, int *exprep, int *timeout)
Definition: neighbors.cc:595
CachePeer * neighborsDigestSelect(PeerSelector *)
Definition: neighbors.cc:805
void peerNoteDigestGone(CachePeer *p)
time_t positiveTimeout(const time_t timeout)
Definition: neighbors.cc:1195
void peerClearRRStart(void)
Definition: neighbors.cc:430
bool peerCanOpenMore(const CachePeer *p)
Whether we can open new connections to the peer (e.g., despite max-conn)
Definition: neighbors.cc:223
int peerHTTPOkay(const CachePeer *, PeerSelector *)
Definition: neighbors.cc:258
void neighborAdd(const char *, const char *, int, int, int, int, int)
CachePeer * peerFindByName(const char *)
Definition: neighbors.cc:1132
CachePeer * getFirstPeer(void)
Definition: neighbors.cc:507
void peerConnClosed(CachePeer *p)
Notifies peer of an associated connection closure.
Definition: neighbors.cc:247
CachePeer * getSingleParent(PeerSelector *)
lookup_t peerDigestLookup(CachePeer *p, PeerSelector *)
Definition: neighbors.cc:759
CachePeer * getNextPeer(CachePeer *)
Definition: neighbors.cc:501
CachePeer * getDefaultParent(PeerSelector *)
Definition: neighbors.cc:474
CachePeer * getWeightedRoundRobinParent(PeerSelector *)
Definition: neighbors.cc:355
unsigned char cache_key
Store key.
Definition: forward.h:29
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291
void IRCB(CachePeer *, peer_t, AnyP::ProtocolType, void *, void *data)
Definition: typedefs.h:22

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors