]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_libcomm.cc
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
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.
10 #include "base/AsyncJob.h"
12 #define STUB_API "comm/libcomm.la"
13 #include "tests/STUB.h"
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
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 ScopedId
Comm::Connection::codeContextGist() const STUB_RETVAL(id
.detach())
30 std::ostream
&Comm::Connection::detailCodeContext(std::ostream
&os
) const STUB_RETVAL(os
)
31 InstanceIdDefinitions(Comm::Connection
, "conn");
33 #include "comm/ConnOpener.h"
34 CBDATA_NAMESPACED_CLASS_INIT(Comm
, ConnOpener
);
35 bool Comm::ConnOpener::doneAll() const STUB_RETVAL(false)
36 void Comm::ConnOpener::start() STUB
37 void Comm::ConnOpener::swanSong() STUB
38 Comm::ConnOpener::ConnOpener(Comm::ConnectionPointer
&, const AsyncCall::Pointer
&, time_t) : AsyncJob("STUB Comm::ConnOpener") STUB
39 Comm::ConnOpener::~ConnOpener() STUB
40 void Comm::ConnOpener::setHost(const char *) STUB
41 const char * Comm::ConnOpener::getHost() const STUB_RETVAL(NULL
)
43 #include "comm/forward.h"
44 bool Comm::IsConnOpen(const Comm::ConnectionPointer
&) STUB_RETVAL(false)
46 #include "comm/IoCallback.h"
47 void Comm::IoCallback::setCallback(iocb_type
, AsyncCall::Pointer
&, char *, FREE
*, int) STUB
48 void Comm::IoCallback::selectOrQueueWrite() STUB
49 void Comm::IoCallback::cancel(const char *reason
) STUB
50 void Comm::IoCallback::finish(Comm::Flag code
, int xerrn
) STUB
51 Comm::CbEntry
*Comm::iocb_table
= NULL
;
52 void Comm::CallbackTableInit() STUB
53 void Comm::CallbackTableDestruct() STUB
55 #include "comm/Loops.h"
56 void Comm::SelectLoopInit(void) STUB
57 void Comm::SetSelect(int, unsigned int, PF
*, void *, time_t) STUB
58 Comm::Flag
Comm::DoSelect(int) STUB_RETVAL(Comm::COMM_ERROR
)
59 void Comm::QuickPollRequired(void) STUB
61 #include "comm/Read.h"
62 void Comm::Read(const Comm::ConnectionPointer
&conn
, AsyncCall::Pointer
&callback
) STUB
63 bool Comm::MonitorsRead(int fd
) STUB_RETVAL(false)
64 Comm::Flag
Comm::ReadNow(CommIoCbParams
¶ms
, SBuf
&buf
) STUB_RETVAL(Comm::COMM_ERROR
)
65 void Comm::ReadCancel(int fd
, AsyncCall::Pointer
&callback
) STUB
66 //void Comm::HandleRead(int, void*) STUB
68 void comm_read_base(const Comm::ConnectionPointer
&conn
, char *buf
, int len
, AsyncCall::Pointer
&callback
) STUB
69 void comm_read_cancel(int fd
, IOCB
*callback
, void *data
) STUB
71 #include "comm/TcpAcceptor.h"
72 //Comm::TcpAcceptor(const Comm::ConnectionPointer &conn, const char *note, const Subscription::Pointer &aSub) STUB
73 void Comm::TcpAcceptor::subscribe(const Subscription::Pointer
&aSub
) STUB
74 void Comm::TcpAcceptor::unsubscribe(const char *) STUB
75 void Comm::TcpAcceptor::acceptNext() STUB
76 void Comm::TcpAcceptor::notify(const Comm::Flag flag
, const Comm::ConnectionPointer
&) const STUB
78 #include "comm/Write.h"
79 void Comm::Write(const Comm::ConnectionPointer
&, const char *, int, AsyncCall::Pointer
&, FREE
*) STUB
80 void Comm::Write(const Comm::ConnectionPointer
&conn
, MemBuf
*mb
, AsyncCall::Pointer
&callback
) STUB
81 void Comm::WriteCancel(const Comm::ConnectionPointer
&conn
, const char *reason
) STUB
82 /*PF*/ void Comm::HandleWrite(int, void*) STUB
84 std::ostream
&operator << (std::ostream
&os
, const Comm::Connection
&conn
) STUB_RETVAL(os
<< "[Connection object]")