stub_icp.cc
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 #include "squid.h"
10 #include "AccessLogEntry.h"
11 #include "comm/Connection.h"
12 #include "ICP.h"
13 
14 #define STUB_API "icp_*.cc"
15 #include "tests/STUB.h"
16 
18 icp_common_t::icp_common_t(char *, unsigned int) STUB
19 void icp_common_t::handleReply(char *, Ip::Address &) STUB
20 icp_common_t *icp_common_t::CreateMessage(icp_opcode, int, const char *, int, int) STUB_RETVAL(nullptr)
24 bool ICPState::confirmAndPrepHit(const StoreEntry &) const STUB_RETVAL(false)
25 LogTags *ICPState::loggingTags() const STUB_RETVAL(nullptr)
26 void ICPState::fillChecklist(ACLFilledChecklist&) const STUB
27 
31 
32 HttpRequest* icpGetRequest(char *, int, int, Ip::Address &) STUB_RETVAL(nullptr)
33 bool icpAccessAllowed(Ip::Address &, HttpRequest *) STUB_RETVAL(false)
34 void icpCreateAndSend(icp_opcode, int, char const *, int, int, int, const Ip::Address &, AccessLogEntryPointer) STUB
36 void icpDenyAccess(Ip::Address &, char *, int, int) STUB
37 void icpHandleIcpV3(int, Ip::Address &, char *, int) STUB
38 void icpConnectionShutdown(void) STUB
39 int icpSetCacheKey(const cache_key *) STUB_RETVAL(0)
40 const cache_key *icpGetCacheKey(const char *, int) STUB_RETVAL(nullptr)
41 
42 #include "icp_opcode.h"
43 // dynamically generated
44 #include "icp_opcode.cc"
45 
void icpHandleIcpV3(int, Ip::Address &, char *, int)
Definition: icp_v3.cc:71
bool icpAccessAllowed(Ip::Address &from, HttpRequest *icp_request)
Definition: icp_v2.cc:443
unsigned char cache_key
Store key.
Definition: forward.h:29
#define STUB_RETVAL(x)
Definition: STUB.h:41
void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd)
Definition: icp_v2.cc:427
icp_common_t::icp_common_t() STUB icp_common_t Comm::ConnectionPointer icpOutgoingConn
Definition: stub_icp.cc:17
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17
void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from, AccessLogEntryPointer)
Definition: icp_v2.cc:417
HttpRequest * icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from)
Definition: icp_v2.cc:456
@ ICP_INVALID
Definition: icp_opcode.h:15
icp_opcode icpGetCommonOpcode()
Definition: icp_v2.cc:375
const cache_key * icpGetCacheKey(const char *url, int reqnum)
Definition: icp_v2.cc:874
Ip::Address theIcpPublicHostID
Definition: stub_icp.cc:30
void icpConnectionShutdown(void)
Definition: icp_v2.cc:779
#define STUB
macro to stub a void function.
Definition: STUB.h:33
Comm::ConnectionPointer icpIncomingConn
Definition: icp_v2.cc:98
Definition: client_db.h:23
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:26
icp_common_t()
Definition: icp_v2.cc:103
icp_opcode
Definition: icp_opcode.h:13
#define false
Definition: GnuRegex.c:233
Definition: ICP.h:62
int icpSetCacheKey(const cache_key *key)
Definition: icp_v2.cc:861

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors