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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors