stub_icp.cc
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 #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:442
unsigned char cache_key
Store key.
Definition: forward.h:29
#define STUB_RETVAL(x)
Definition: STUB.h:42
void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd)
Definition: icp_v2.cc:428
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:16
void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from, AccessLogEntryPointer)
Definition: icp_v2.cc:418
HttpRequest * icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from)
Definition: icp_v2.cc:461
@ ICP_INVALID
Definition: icp_opcode.h:15
icp_opcode icpGetCommonOpcode()
Definition: icp_v2.cc:376
const cache_key * icpGetCacheKey(const char *url, int reqnum)
Definition: icp_v2.cc:855
Ip::Address theIcpPublicHostID
Definition: stub_icp.cc:30
void icpConnectionShutdown(void)
Definition: icp_v2.cc:760
#define STUB
macro to stub a void function.
Definition: STUB.h:34
Comm::ConnectionPointer icpIncomingConn
Definition: icp_v2.cc:99
Definition: Xaction.cc:137
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:26
icp_common_t()
Definition: icp_v2.cc:104
icp_opcode
Definition: icp_opcode.h:13
Definition: ICP.h:61
int icpSetCacheKey(const cache_key *key)
Definition: icp_v2.cc:842

 

Introduction

Documentation

Support

Miscellaneous