1 /*
2  * Copyright (C) 1996-2021 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"
16 Comm::AcceptLimiter dummy;
17 Comm::AcceptLimiter & Comm::AcceptLimiter::Instance() STUB_RETVAL(dummy)
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"
23 Comm::Connection::Connection() STUB
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);
32 bool Comm::ConnOpener::doneAll() const STUB_RETVAL(false)
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"
41     bool Comm::IsConnOpen(const Comm::ConnectionPointer &) STUB_RETVAL(false)
42 
43 #include "comm/IoCallback.h"
44     void Comm::IoCallback::setCallback(iocb_type, AsyncCall::Pointer &, char *, FREE *, int) STUB
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"
59 void Comm::Read(const Comm::ConnectionPointer &conn, AsyncCall::Pointer &callback) STUB
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
70 void Comm::TcpAcceptor::subscribe(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