stub_icp.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 "comm/Connection.h"
11 #include "ICP.h"
12 
13 #define STUB_API "icp_*.cc"
14 #include "tests/STUB.h"
15 
16 #ifdef __cplusplus
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(NULL)
21 icp_opcode _icp_common_t::getOpCode() const STUB_RETVAL(ICP_INVALID)
22 ICPState::ICPState(icp_common_t &aHeader, HttpRequest *aRequest) STUB
24 #endif
25 
29 
30 HttpRequest* icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from) STUB_RETVAL(NULL)
31 bool icpAccessAllowed(Ip::Address &from, HttpRequest * icp_request) STUB_RETVAL(false)
32 void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from) STUB
34 int icpUdpSend(int, const Ip::Address &, icp_common_t *, LogTags, int) STUB_RETVAL(0)
35 LogTags icpLogFromICPCode(icp_opcode opcode) STUB_RETVAL(LOG_TAG_NONE)
36 void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd) STUB
37 void icpHandleIcpV3(int, Ip::Address &, char *, int) STUB
38 int icpCheckUdpHit(StoreEntry *, HttpRequest * request) STUB_RETVAL(0)
39 void icpConnectionsOpen(void) STUB
40 void icpConnectionShutdown(void) STUB
41 void icpConnectionClose(void) STUB
43 const cache_key *icpGetCacheKey(const char *url, int reqnum) STUB_RETVAL(NULL)
44 
45 #include "icp_opcode.h"
46 // dynamically generated
47 #include "icp_opcode.cc"
48 
Definition: ICP.h:67
Comm::ConnectionPointer icpIncomingConn
Definition: icp_v2.cc:71
icp_opcode icpGetCommonOpcode()
Definition: icp_v2.cc:352
const cache_key * icpGetCacheKey(const char *url, int reqnum)
Definition: icp_v2.cc:829
unsigned char cache_key
Store key.
Definition: forward.h:29
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291
void icpConnectionShutdown(void)
Definition: icp_v2.cc:734
bool icpAccessAllowed(Ip::Address &from, HttpRequest *icp_request)
Definition: icp_v2.cc:411
int icpSetCacheKey(const cache_key *key)
Definition: icp_v2.cc:816
#define STUB_RETVAL(x)
Definition: STUB.h:41
int icpCheckUdpHit(StoreEntry *, HttpRequest *request)
Definition: icp_v2.cc:328
#define STUB
macro to stub a void function.
Definition: STUB.h:33
_icp_common_t()
Definition: icp_v2.cc:76
_icp_common_t::_icp_common_t() STUB _icp_common_t Comm::ConnectionPointer icpOutgoingConn
Definition: stub_icp.cc:17
void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from)
Definition: icp_v2.cc:388
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:433
int icpUdpSend(int, const Ip::Address &, icp_common_t *, const LogTags &, int)
Definition: icp_v2.cc:277
void icpHandleIcpV3(int, Ip::Address &, char *, int)
Definition: icp_v3.cc:84
void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd)
Definition: icp_v2.cc:395
void const cache_key * key
LogTags icpLogFromICPCode(icp_opcode opcode)
Definition: icp_v2.cc:365
Ip::Address theIcpPublicHostID
Definition: stub_icp.cc:28
#define NULL
Definition: types.h:166
#define false
Definition: GnuRegex.c:233
Definition: Address.cc:190

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors