]> git.ipfire.org Git - thirdparty/squid.git/blame_incremental - src/comm/forward.h
Maintenance: update MemBlob (#2106)
[thirdparty/squid.git] / src / comm / forward.h
... / ...
CommitLineData
1/*
2 * Copyright (C) 1996-2025 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#ifndef SQUID_SRC_COMM_FORWARD_H
10#define SQUID_SRC_COMM_FORWARD_H
11
12#include "base/RefCount.h"
13
14#include <vector>
15
16/// legacy CBDATA callback functions ABI definition for read or write I/O events
17/// \deprecated use CommCalls API instead where possible
18typedef void PF(int, void *);
19
20/// Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
21namespace Comm
22{
23
24class Connection;
25class ConnOpener;
26class TcpKeepAlive;
27
28typedef RefCount<Comm::Connection> ConnectionPointer;
29
30bool IsConnOpen(const Comm::ConnectionPointer &conn);
31
32// callback handler to process an FD which is available for writing.
33PF HandleWrite;
34
35/// Mark an FD to be watched for its IO status.
36void SetSelect(int, unsigned int, PF *, void *, time_t);
37
38}; // namespace Comm
39
40#endif /* SQUID_SRC_COMM_FORWARD_H */
41