]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/comm/forward.h
a0211860455b1e733d01894e158502c64e9d90d3
2 * Copyright (C) 1996-2017 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.
9 #ifndef _SQUID_COMM_FORWARD_H
10 #define _SQUID_COMM_FORWARD_H
12 #include "base/RefCount.h"
16 /// legacy CBDATA callback functions ABI definition for read or write I/O events
17 /// \deprecated use CommCalls API instead where possible
18 typedef void PF(int, void *);
20 /// Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
27 typedef RefCount
<Comm::Connection
> ConnectionPointer
;
29 typedef std::vector
<Comm::ConnectionPointer
> ConnectionList
;
31 bool IsConnOpen(const Comm::ConnectionPointer
&conn
);
33 // callback handler to process an FD which is available for writing.
36 /// Mark an FD to be watched for its IO status.
37 void SetSelect(int, unsigned int, PF
*, void *, time_t);
41 #endif /* _SQUID_COMM_FORWARD_H */