Squid Web Cache master
Loading...
Searching...
No Matches
stub_icp.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2026 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 "HttpRequest.h"
13#include "ICP.h"
14
15#define STUB_API "icp_*.cc"
16#include "tests/STUB.h"
17
19icp_common_t::icp_common_t(char *, unsigned int) STUB
20void icp_common_t::handleReply(char *, Ip::Address &) STUB
21icp_common_t *icp_common_t::CreateMessage(icp_opcode, int, const char *, int, int) STUB_RETVAL(nullptr)
25bool ICPState::confirmAndPrepHit(const StoreEntry &) const STUB_RETVAL(false)
26LogTags *ICPState::loggingTags() const STUB_RETVAL(nullptr)
27void ICPState::fillChecklist(ACLFilledChecklist&) const STUB
28
29Comm::ConnectionPointer icpIncomingConn;
30Comm::ConnectionPointer icpOutgoingConn;
32
33const char *icpGetUrl(const Ip::Address &, const char *, const icp_common_t &) STUB_RETVAL(nullptr)
34HttpRequest::Pointer icpGetRequest(const char *, int, int, const Ip::Address &) STUB_RETVAL(nullptr)
35void icpCreateAndSend(icp_opcode, int, char const *, int, int, int, const Ip::Address &, AccessLogEntryPointer) STUB
37void icpDenyAccess(const Ip::Address &, const char *, int, int) STUB
38void icpHandleIcpV3(int, Ip::Address &, char *, int) STUB
41const cache_key *icpGetCacheKey(const char *, int) STUB_RETVAL(nullptr)
42
43#include "icp_opcode.h"
44// dynamically generated
45#include "icp_opcode.cc"
46
const char * icpGetUrl(const Ip::Address &from, const char *, const icp_common_t &)
Definition icp_v2.cc:462
#define STUB
macro to stub a void function.
Definition STUB.h:34
#define STUB_RETVAL(x)
Definition STUB.h:42
Definition ICP.h:62
icp_opcode icpGetCommonOpcode()
Definition icp_v2.cc:376
void icpDenyAccess(const Ip::Address &from, const char *url, int reqnum, int fd)
Definition icp_v2.cc:428
int icpSetCacheKey(const cache_key *key)
Definition icp_v2.cc:881
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
HttpRequestPointer icpGetRequest(const char *url, int reqnum, int fd, const Ip::Address &from)
Definition icp_v2.cc:495
icp_opcode
Definition icp_opcode.h:13
void icpConnectionShutdown(void)
Definition icp_v2.cc:799
void icpHandleIcpV3(int, Ip::Address &, char *, int)
Definition icp_v3.cc:69
const cache_key * icpGetCacheKey(const char *url, int reqnum)
Definition icp_v2.cc:894
@ ICP_INVALID
Definition icp_opcode.h:15
icp_common_t::icp_common_t() STUB icp_common_t Comm::ConnectionPointer icpOutgoingConn
Definition stub_icp.cc:18
Comm::ConnectionPointer icpIncomingConn
Definition icp_v2.cc:99
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition Xaction.cc:137
unsigned char cache_key
Store key.
Definition forward.h:29
Ip::Address theIcpPublicHostID
Definition stub_icp.cc:31