stub_libcomm.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 "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 void Comm::ResetSelect(int) STUB
56 Comm::Flag Comm::DoSelect(int) STUB_RETVAL(Comm::COMM_ERROR)
57 void Comm::QuickPollRequired(void) STUB
58 
59 #include "comm/Read.h"
60 void Comm::Read(const Comm::ConnectionPointer &conn, AsyncCall::Pointer &callback) STUB
61 bool Comm::MonitorsRead(int fd) STUB_RETVAL(false)
62 Comm::Flag Comm::ReadNow(CommIoCbParams &params, SBuf &buf) STUB_RETVAL(Comm::COMM_ERROR)
63 void Comm::ReadCancel(int fd, AsyncCall::Pointer &callback) STUB
64 //void Comm::HandleRead(int, void*) STUB
65 
66 void comm_read_base(const Comm::ConnectionPointer &conn, char *buf, int len, AsyncCall::Pointer &callback) STUB
67 void comm_read_cancel(int fd, IOCB *callback, void *data) STUB
68 
69 #include "comm/TcpAcceptor.h"
70 //Comm::TcpAcceptor(const Comm::ConnectionPointer &conn, const char *note, const Subscription::Pointer &aSub) STUB
72 void Comm::TcpAcceptor::unsubscribe(const char *) STUB
73 void Comm::TcpAcceptor::acceptNext() STUB
74 void Comm::TcpAcceptor::notify(const Comm::Flag flag, const Comm::ConnectionPointer &) const STUB
75 
76 #include "comm/Write.h"
77 void Comm::Write(const Comm::ConnectionPointer &, const char *, int, AsyncCall::Pointer &, FREE *) STUB
78 void Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Pointer &callback) STUB
79 void Comm::WriteCancel(const Comm::ConnectionPointer &conn, const char *reason) STUB
80 /*PF*/ void Comm::HandleWrite(int, void*) STUB
81 
82 std::ostream &operator << (std::ostream &os, const Comm::Connection &conn) STUB_RETVAL(os << "[Connection object]")
83 
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 ResetSelect(int)
reset/undo/unregister the watch for an FD which was set by Comm::SetSelect()
Definition: ModDevPoll.cc:304
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:87
CbEntry * iocb_table
Definition: IoCallback.cc:19
char * p
Definition: membanger.c:43
void FREE(void *)
Definition: forward.h:36
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:324
#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 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()
void QuickPollRequired(void)
Definition: ModDevPoll.cc:444
#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