stub_libcomm.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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 &) STUB
19 void Comm::AcceptLimiter::removeDead(const Comm::TcpAcceptor::Pointer &) STUB
20 void Comm::AcceptLimiter::kick() STUB
21 
22 #include "comm/Connection.h"
25 Comm::ConnectionPointer Comm::Connection::cloneProfile() const STUB_RETVAL(nullptr)
26 void Comm::Connection::close() STUB
27 void Comm::Connection::noteClosure() STUB
28 CachePeer * Comm::Connection::getPeer() const STUB_RETVAL(nullptr)
29 void Comm::Connection::setPeer(CachePeer *) STUB
30 ScopedId Comm::Connection::codeContextGist() const STUB_RETVAL(id.detach())
31 std::ostream &Comm::Connection::detailCodeContext(std::ostream &os) const STUB_RETVAL(os)
32 InstanceIdDefinitions(Comm::Connection, "conn", uint64_t);
33 
34 #include "comm/ConnOpener.h"
36 bool Comm::ConnOpener::doneAll() const STUB_RETVAL(false)
37 void Comm::ConnOpener::start() STUB
38 void Comm::ConnOpener::swanSong() STUB
39 Comm::ConnOpener::ConnOpener(const Comm::ConnectionPointer &, const AsyncCall::Pointer &, time_t) : AsyncJob("STUB Comm::ConnOpener") STUB
40  Comm::ConnOpener::~ConnOpener() STUB
41  void Comm::ConnOpener::setHost(const char *) STUB
42  const char * Comm::ConnOpener::getHost() const STUB_RETVAL(nullptr)
43 
44 #include "comm/forward.h"
46 
47 #include "comm/IoCallback.h"
50  void Comm::IoCallback::cancel(const char *) STUB
51  void Comm::IoCallback::finish(Comm::Flag, int) STUB
52  Comm::CbEntry *Comm::iocb_table = nullptr;
55 
56 #include "comm/Loops.h"
57 void Comm::SelectLoopInit(void) STUB
58 void Comm::SetSelect(int, unsigned int, PF *, void *, time_t) STUB
61 
62 #include "comm/Read.h"
64 bool Comm::MonitorsRead(int) STUB_RETVAL(false)
66 void Comm::ReadCancel(int, AsyncCall::Pointer &) STUB
67 //void Comm::HandleRead(int, void*) STUB
68 
69 void comm_read_base(const Comm::ConnectionPointer &, char *, int, AsyncCall::Pointer &) STUB
70 void comm_read_cancel(int, IOCB *, void *) STUB
71 
72 #include "comm/TcpAcceptor.h"
73 //Comm::TcpAcceptor(const Comm::ConnectionPointer &, const char *, const Subscription::Pointer &) STUB
75 void Comm::TcpAcceptor::unsubscribe(const char *) STUB
77 void Comm::TcpAcceptor::notify(const Comm::Flag, const Comm::ConnectionPointer &) const STUB
78 
79 #include "comm/Tcp.h"
80 void Comm::ApplyTcpKeepAlive(int, const TcpKeepAlive &) STUB
81 
82 #include "comm/Write.h"
83 void Comm::Write(const Comm::ConnectionPointer &, const char *, int, AsyncCall::Pointer &, FREE *) STUB
85 void Comm::WriteCancel(const Comm::ConnectionPointer &, const char *) STUB
86 /*PF*/ void Comm::HandleWrite(int, void*) STUB
87 
88 std::ostream &Comm::operator <<(std::ostream &os, const Connection &) STUB_RETVAL(os << "[Connection object]")
89 
void Read(const Comm::ConnectionPointer &conn, AsyncCall::Pointer &callback)
Definition: Read.cc:40
void FREE(void *)
Definition: forward.h:37
bool MonitorsRead(int fd)
whether the FD socket is being monitored for read
Definition: Read.cc:29
#define STUB_RETVAL(x)
Definition: STUB.h:42
Comm::Flag ReadNow(CommIoCbParams &params, SBuf &buf)
Definition: Read.cc:81
void WriteCancel(const Comm::ConnectionPointer &conn, const char *reason)
Cancel the write pending on FD. No action if none pending.
Comm::Flag DoSelect(int)
Do poll and trigger callback functions as appropriate.
Definition: ModDevPoll.cc:308
Definition: SBuf.h:93
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:16
#define InstanceIdDefinitions(...)
convenience macro to instantiate Class-specific stuff in .cc files
Definition: InstanceId.h:90
void setCallback(iocb_type type, AsyncCall::Pointer &cb, char *buf, FREE *func, int sz)
Definition: IoCallback.cc:55
bool IsConnOpen(const Comm::ConnectionPointer &conn)
Definition: Connection.cc:27
std::ostream & operator<<(std::ostream &, const Connection &)
Definition: Connection.cc:192
bool doneAll() const override
whether positive goal has been reached
Definition: ConnOpener.cc:59
void ReadCancel(int fd, AsyncCall::Pointer &callback)
Cancel the read pending on FD. No action if none pending.
Definition: Read.cc:219
Definition: MemBuf.h:23
void IOCB(const Comm::ConnectionPointer &conn, char *, size_t size, Comm::Flag flag, int xerrno, void *data)
Definition: CommCalls.h:34
SSL Connection
Definition: Session.h:49
void unsubscribe(const char *reason)
Definition: TcpAcceptor.cc:68
void ApplyTcpKeepAlive(int fd, const TcpKeepAlive &)
apply configured TCP keep-alive settings to the given FD socket
Definition: Tcp.cc:51
@ COMM_ERROR
Definition: Flag.h:17
iocb_type
Type of IO callbacks the Comm layer deals with.
Definition: IoCallback.h:22
void selectOrQueueWrite()
called when fd needs to write but may need to wait in line for its quota
Definition: IoCallback.cc:69
#define STUB
macro to stub a void function.
Definition: STUB.h:34
void Write(const Comm::ConnectionPointer &conn, const char *buf, int size, AsyncCall::Pointer &callback, FREE *free_func)
Definition: Write.cc:33
void comm_read_base(const Comm::ConnectionPointer &conn, char *buf, int size, AsyncCall::Pointer &callback)
Definition: Read.cc:56
static AcceptLimiter & Instance()
void SelectLoopInit(void)
Initialize the module on Squid startup.
Definition: ModDevPoll.cc:170
Flag
Definition: Flag.h:15
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:26
Comm::AcceptLimiter &Comm::AcceptLimiter::Instance() STUB_RETVAL(dummy) void Comm CBDATA_NAMESPACED_CLASS_INIT(Comm, ConnOpener)
Comm::AcceptLimiter dummy
Definition: stub_libcomm.cc:16
void SetSelect(int, unsigned int, PF *, void *, time_t)
Mark an FD to be watched for its IO status.
Definition: ModDevPoll.cc:220
void CallbackTableDestruct()
Definition: IoCallback.cc:34
PF HandleWrite
Definition: forward.h:33
void comm_read_cancel(int fd, IOCB *callback, void *data)
Definition: Read.cc:181
void CallbackTableInit()
Definition: IoCallback.cc:22
void subscribe(const Subscription::Pointer &aSub)
Definition: TcpAcceptor.cc:60
CbEntry * iocb_table
Definition: IoCallback.cc:19
void QuickPollRequired(void)
Definition: ModDevPoll.cc:414
void PF(int, void *)
Definition: forward.h:18

 

Introduction

Documentation

Support

Miscellaneous