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
18icp_common_t::icp_common_t(char *, unsigned int) STUB
19void icp_common_t::handleReply(char *, Ip::Address &) STUB
20icp_common_t *icp_common_t::CreateMessage(icp_opcode, int, const char *, int, int) STUB_RETVAL(nullptr)
24bool ICPState::confirmAndPrepHit(const StoreEntry &) const STUB_RETVAL(false)
25LogTags *ICPState::loggingTags() const STUB_RETVAL(nullptr)
26void ICPState::fillChecklist(ACLFilledChecklist&) const STUB
27
31
32HttpRequest* icpGetRequest(char *, int, int, Ip::Address &) STUB_RETVAL(nullptr)
33bool icpAccessAllowed(Ip::Address &, HttpRequest *) STUB_RETVAL(false)
34void icpCreateAndSend(icp_opcode, int, char const *, int, int, int, const Ip::Address &, AccessLogEntryPointer) STUB
36void icpDenyAccess(Ip::Address &, char *, int, int) STUB
37void icpHandleIcpV3(int, Ip::Address &, char *, int) STUB
40const cache_key *icpGetCacheKey(const char *, int) STUB_RETVAL(nullptr)
41
42#include "icp_opcode.h"
43// dynamically generated
44#include "icp_opcode.cc"
45
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETVAL(x)
Definition: STUB.h:41
Definition: ICP.h:62
icp_common_t()
Definition: icp_v2.cc:104
icp_opcode icpGetCommonOpcode()
Definition: icp_v2.cc:376
int icpSetCacheKey(const cache_key *key)
Definition: icp_v2.cc:861
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
icp_opcode
Definition: icp_opcode.h:13
void icpConnectionShutdown(void)
Definition: icp_v2.cc:779
void icpHandleIcpV3(int, Ip::Address &, char *, int)
Definition: icp_v3.cc:71
bool icpAccessAllowed(Ip::Address &from, HttpRequest *icp_request)
Definition: icp_v2.cc:444
const cache_key * icpGetCacheKey(const char *url, int reqnum)
Definition: icp_v2.cc:874
void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd)
Definition: icp_v2.cc:428
HttpRequest * icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from)
Definition: icp_v2.cc:457
@ ICP_INVALID
Definition: icp_opcode.h:15
icp_common_t::icp_common_t() STUB icp_common_t Comm::ConnectionPointer icpOutgoingConn
Definition: stub_icp.cc:17
Comm::ConnectionPointer icpIncomingConn
Definition: icp_v2.cc:99
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:28
Definition: Xaction.cc:139
unsigned char cache_key
Store key.
Definition: forward.h:29
Ip::Address theIcpPublicHostID
Definition: stub_icp.cc:30

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors