stub_icp.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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 *buf, unsigned int len) STUB
19 void icp_common_t::handleReply(char *buf, Ip::Address &from) STUB
20 icp_common_t *icp_common_t::CreateMessage(icp_opcode opcode, int flags, const char *url, int reqnum, int pad) STUB_RETVAL(nullptr)
21 icp_opcode icp_common_t::getOpCode() const STUB_RETVAL(ICP_INVALID)
22 ICPState::ICPState(icp_common_t &aHeader, HttpRequest *aRequest) STUB
24 bool ICPState::confirmAndPrepHit(const StoreEntry &) STUB_RETVAL(false)
25 LogTags *ICPState::loggingTags() STUB_RETVAL(nullptr)
26 void ICPState::fillChecklist(ACLFilledChecklist&) const STUB
27 
28 Comm::ConnectionPointer icpIncomingConn;
29 Comm::ConnectionPointer icpOutgoingConn;
30 Ip::Address theIcpPublicHostID;
31 
32 HttpRequest* icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from) STUB_RETVAL(NULL)
33 bool icpAccessAllowed(Ip::Address &from, HttpRequest * icp_request) STUB_RETVAL(false)
34 void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from, AccessLogEntryPointer) STUB
36 void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd) STUB
37 void icpHandleIcpV3(int, Ip::Address &, char *, int) STUB
38 void icpConnectionsOpen(void) STUB
39 void icpConnectionShutdown(void) STUB
40 void icpConnectionClose(void) STUB
42 const cache_key *icpGetCacheKey(const char *url, int reqnum) STUB_RETVAL(NULL)
43 
44 #include "icp_opcode.h"
45 // dynamically generated
46 #include "icp_opcode.cc"
47 
Definition: ICP.h:64
icp_common_t()
Definition: icp_v2.cc:106
icp_opcode icpGetCommonOpcode()
Definition: icp_v2.cc:402
const cache_key * icpGetCacheKey(const char *url, int reqnum)
Definition: icp_v2.cc:888
unsigned char cache_key
Store key.
Definition: forward.h:29
void icpConnectionShutdown(void)
Definition: icp_v2.cc:793
bool icpAccessAllowed(Ip::Address &from, HttpRequest *icp_request)
Definition: icp_v2.cc:470
int icpSetCacheKey(const cache_key *key)
Definition: icp_v2.cc:875
#define STUB_RETVAL(x)
Definition: STUB.h:41
#define STUB
macro to stub a void function.
Definition: STUB.h:33
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:25
int unsigned int const char *desc STUB void int len
Definition: stub_fd.cc:20
HttpRequest * icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from)
Definition: icp_v2.cc:492
void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from, AccessLogEntryPointer)
Definition: icp_v2.cc:444
void icpHandleIcpV3(int, Ip::Address &, char *, int)
Definition: icp_v3.cc:88
void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd)
Definition: icp_v2.cc:454
#define NULL
Definition: types.h:166
#define false
Definition: GnuRegex.c:233
Definition: Address.cc:190

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors