stub_libcomm.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 "base/AsyncJob.h"
11 
12 #define STUB_API "comm/libcomm.la"
13 #include "tests/STUB.h"
14 
15 #include "comm/AcceptLimiter.h"
18 void Comm::AcceptLimiter::defer(const Comm::TcpAcceptor::Pointer &afd) STUB
19 void Comm::AcceptLimiter::removeDead(const Comm::TcpAcceptor::Pointer &afd) STUB
20 void Comm::AcceptLimiter::kick() STUB
21 
22 #include "comm/Connection.h"
24 Comm::Connection::~Connection() STUB
25 Comm::ConnectionPointer Comm::Connection::copyDetails() const STUB_RETVAL(NULL)
26 void Comm::Connection::close() STUB
27 CachePeer * Comm::Connection::getPeer() const STUB_RETVAL(NULL)
28 void Comm::Connection::setPeer(CachePeer * p) STUB
29 
30 #include "comm/ConnOpener.h"
31 CBDATA_NAMESPACED_CLASS_INIT(Comm, ConnOpener);
33 void Comm::ConnOpener::start() STUB
34 void Comm::ConnOpener::swanSong() STUB
35 Comm::ConnOpener::ConnOpener(Comm::ConnectionPointer &, AsyncCall::Pointer &, time_t) : AsyncJob("STUB Comm::ConnOpener") STUB
36  Comm::ConnOpener::~ConnOpener() STUB
37  void Comm::ConnOpener::setHost(const char *) STUB
38  const char * Comm::ConnOpener::getHost() const STUB_RETVAL(NULL)
39 
40 #include "comm/forward.h"
42 
43 #include "comm/IoCallback.h"
45  void Comm::IoCallback::selectOrQueueWrite() STUB
46  void Comm::IoCallback::cancel(const char *reason) STUB
47  void Comm::IoCallback::finish(Comm::Flag code, int xerrn) STUB
48  Comm::CbEntry *Comm::iocb_table = NULL;
49 void Comm::CallbackTableInit() STUB
50 void Comm::CallbackTableDestruct() STUB
51 
52 #include "comm/Loops.h"
53 void Comm::SelectLoopInit(void) STUB
54 void Comm::SetSelect(int, unsigned int, PF *, void *, time_t) STUB
55 Comm::Flag Comm::DoSelect(int) STUB_RETVAL(Comm::COMM_ERROR)
56 void Comm::QuickPollRequired(void) STUB
57 
58 #include "comm/Read.h"
60 bool Comm::MonitorsRead(int fd) STUB_RETVAL(false)
61 Comm::Flag Comm::ReadNow(CommIoCbParams &params, SBuf &buf) STUB_RETVAL(Comm::COMM_ERROR)
62 void Comm::ReadCancel(int fd, AsyncCall::Pointer &callback) STUB
63 //void Comm::HandleRead(int, void*) STUB
64 
65 void comm_read_base(const Comm::ConnectionPointer &conn, char *buf, int len, AsyncCall::Pointer &callback) STUB
66 void comm_read_cancel(int fd, IOCB *callback, void *data) STUB
67 
68 #include "comm/TcpAcceptor.h"
69 //Comm::TcpAcceptor(const Comm::ConnectionPointer &conn, const char *note, const Subscription::Pointer &aSub) STUB
71 void Comm::TcpAcceptor::unsubscribe(const char *) STUB
72 void Comm::TcpAcceptor::acceptNext() STUB
73 void Comm::TcpAcceptor::notify(const Comm::Flag flag, const Comm::ConnectionPointer &) const STUB
74 
75 #include "comm/Write.h"
76 void Comm::Write(const Comm::ConnectionPointer &, const char *, int, AsyncCall::Pointer &, FREE *) STUB
77 void Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Pointer &callback) STUB
78 void Comm::WriteCancel(const Comm::ConnectionPointer &conn, const char *reason) STUB
79 /*PF*/ void Comm::HandleWrite(int, void*) STUB
80 
81 std::ostream &operator << (std::ostream &os, const Comm::Connection &conn) STUB_RETVAL(os << "[Connection object]")
82 
PF HandleWrite
Definition: forward.h:34
#define CBDATA_NAMESPACED_CLASS_INIT(namespace, type)
Definition: cbdata.h:326
void unsubscribe(const char *reason)
Definition: TcpAcceptor.cc:70
void const char HLPCB * callback
Definition: stub_helper.cc:16
Comm::Flag ReadNow(CommIoCbParams &params, SBuf &buf)
Definition: Read.cc:80
void SelectLoopInit(void)
Initialize the module on Squid startup.
Definition: ModDevPoll.cc:178
Definition: SBuf.h:86
CbEntry * iocb_table
Definition: IoCallback.cc:19
char * p
Definition: membanger.c:43
void FREE(void *)
Definition: forward.h:36
int conn
the current server connection FD
Definition: Transport.cc:26
void setCallback(iocb_type type, AsyncCall::Pointer &cb, char *buf, FREE *func, int sz)
Definition: IoCallback.cc:55
void CallbackTableInit()
Definition: IoCallback.cc:22
void CallbackTableDestruct()
Definition: IoCallback.cc:34
void Read(const Comm::ConnectionPointer &conn, AsyncCall::Pointer &callback)
Definition: Read.cc:39
iocb_type
Type of IO callbacks the Comm layer deals with.
Definition: IoCallback.h:22
bool IsConnOpen(const Comm::ConnectionPointer &conn)
Definition: Connection.cc:24
void const char HLPCB void * data
Definition: stub_helper.cc:16
Comm::Flag DoSelect(int)
Do poll and trigger callback functions as appropriate.
Definition: ModDevPoll.cc:313
#define STUB_RETVAL(x)
Definition: STUB.h:41
void SetSelect(int, unsigned int, PF *, void *, time_t)
Mark an FD to be watched for its IO status.
Definition: ModDevPoll.cc:225
#define STUB
macro to stub a void function.
Definition: STUB.h:33
Comm::AcceptLimiter dummy
Definition: stub_libcomm.cc:16
bool MonitorsRead(int fd)
whether the FD socket is being monitored for read
Definition: Read.cc:28
void PF(int, void *)
Definition: forward.h:18
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:25
int unsigned int const char *desc STUB void int len
Definition: stub_fd.cc:20
unsigned char code
Definition: html_quote.c:20
void const char * buf
Definition: stub_helper.cc:16
void IOCB(const Comm::ConnectionPointer &conn, char *, size_t size, Comm::Flag flag, int xerrno, void *data)
Definition: CommCalls.h:36
Flag
Definition: Flag.h:15
void comm_read_cancel(int fd, IOCB *callback, void *data)
Definition: Read.cc:178
void WriteCancel(const Comm::ConnectionPointer &conn, const char *reason)
Cancel the write pending on FD. No action if none pending.
Definition: MemBuf.h:23
void comm_read_base(const Comm::ConnectionPointer &conn, char *buf, int size, AsyncCall::Pointer &callback)
Definition: Read.cc:55
void subscribe(const Subscription::Pointer &aSub)
Definition: TcpAcceptor.cc:62
void ReadCancel(int fd, AsyncCall::Pointer &callback)
Cancel the read pending on FD. No action if none pending.
Definition: Read.cc:216
static AcceptLimiter & Instance()
#define NULL
Definition: types.h:166
void QuickPollRequired(void)
Definition: ModDevPoll.cc:433
#define false
Definition: GnuRegex.c:233
void Write(const Comm::ConnectionPointer &conn, const char *buf, int size, AsyncCall::Pointer &callback, FREE *free_func)
Definition: Write.cc:35
virtual bool doneAll() const
whether positive goal has been reached
Definition: ConnOpener.cc:52

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors