10#define SQUID_SRC_FDE_H
163 long handle = (long)
nullptr;
189#define fd_table fde::Table
196 return fd_table[fd].read(fd, buf, len);
202 return fd_table[fd].write(fd, buf, len);
bool closing() const
True if comm_close for this fd has been called.
static fde * Table
global table of FD and their state.
WRITE_HANDLER * writeMethod_
exports Squid bytes
char const * remoteAddr() const
AsyncCall::Pointer timeoutHandler
void useBufferedIo(READ_HANDLER *, WRITE_HANDLER *)
use I/O methods that maintain an internal-to-them buffer
CodeContextPointer codeContext
What the I/O handlers are supposed to work on.
bool readPending(int) const
void dumpStats(StoreEntry &, int) const
struct fde::_fde_flags flags
MessageBucket::Pointer writeQuotaHandler
response write limiter, if configured
Security::SessionPointer ssl
read handler for half-closed fds
READ_HANDLER * readMethod_
imports bytes into Squid
void setIo(READ_HANDLER *, WRITE_HANDLER *)
set I/O methods for a freshly opened descriptor
AsyncCall::Pointer closeHandler
unsigned short remote_port
int write(int fd, const char *buf, int len)
ClientInfo * clientInfo
pointer to client info used in client write limiter or nullptr if not present
char ipaddr[MAX_IPSTRLEN]
AsyncCall::Pointer halfClosedReader
void clear()
Clear the fde class back to NULL equivalent.
unsigned int nfConnmarkFromServer
void noteUse()
record a transaction on this FD
static void DumpStats(StoreEntry *)
Security::ContextPointer dynamicTlsContext
cached and then freed when fd is closed
int read(int fd, char *buf, int len)
int FD_READ_METHOD(int fd, char *buf, int len)
int FD_WRITE_METHOD(int fd, const char *buf, int len)
int READ_HANDLER(int, char *, int)
int WRITE_HANDLER(int, const char *, int)
#define MAX_IPSTRLEN
Length of buffer that needs to be allocated to old a null-terminated IP-string.
std::shared_ptr< SSL_CTX > ContextPointer
std::shared_ptr< SSL > SessionPointer
bool read_pending
buffering readMethod_ has data to give (regardless of socket state)
bool harshClosureRequested
whether comm_reset_close() (or old_comm_reset_close()) has been called
bool close_request
true if file_ or comm_close has been called
void DWCB(int, int, size_t, void *)