#include <fde.h>

Collaboration diagram for fde:

Classes

struct  _fde_flags
 

Public Member Functions

 fde ()
 
void clear ()
 Clear the fde class back to NULL equivalent. More...
 
bool closing () const
 True if comm_close for this fd has been called. More...
 
char const * remoteAddr () const
 
void dumpStats (StoreEntry &, int) const
 
bool readPending (int) const
 
void noteUse ()
 record a transaction on this FD More...
 

Static Public Member Functions

static void DumpStats (StoreEntry *)
 

Public Attributes

unsigned int type = 0
 
unsigned short remote_port = 0
 
Ip::Address local_addr
 
tos_t tosToServer = '\0'
 
nfmark_t nfmarkToServer = 0
 
int sock_family = 0
 
char ipaddr [MAX_IPSTRLEN]
 
char desc [FD_DESC_SZ]
 
struct fde::_fde_flags flags
 
int64_t bytes_read = 0
 
int64_t bytes_written = 0
 
struct {
   int   uses = 0
 
pconn
 
ClientInfoclientInfo = nullptr
 pointer to client info used in client write limiter or nullptr if not present More...
 
MessageBucket::Pointer writeQuotaHandler
 response write limiter, if configured More...
 
unsigned epoll_state = 0
 
_fde_disk disk
 
PFread_handler
 
void * read_data = nullptr
 
PFwrite_handler
 
void * write_data = nullptr
 
AsyncCall::Pointer timeoutHandler
 
time_t timeout = 0
 
time_t writeStart = 0
 
void * lifetime_data = nullptr
 
AsyncCall::Pointer closeHandler
 
AsyncCall::Pointer halfClosedReader
 
READ_HANDLERread_method
 read handler for half-closed fds More...
 
WRITE_HANDLERwrite_method
 
Security::SessionPointer ssl
 
Security::ContextPointer dynamicTlsContext
 cached and then freed when fd is closed More...
 
tos_t tosFromServer = '\0'
 
unsigned int nfmarkFromServer = 0
 

Static Public Attributes

static fdeTable = nullptr
 global table of FD and their state. More...
 

Detailed Description

Definition at line 49 of file fde.h.

Constructor & Destructor Documentation

fde::fde ( )
inline

Definition at line 53 of file fde.h.

References desc, ipaddr, read_handler, read_method, write_handler, and write_method.

Referenced by clear().

Member Function Documentation

void fde::clear ( )
inline

Definition at line 63 of file fde.h.

References fde().

Referenced by fd_close().

bool fde::closing ( ) const
inline

Definition at line 66 of file fde.h.

References fde::_fde_flags::close_request, and flags.

Referenced by _comm_close(), and checkTimeouts().

void fde::DumpStats ( StoreEntry dumpEntry)
static

Definition at line 55 of file fde.cc.

References dumpStats(), i, Squid_MaxFD, and storeAppendPrintf().

Referenced by statRegisterWithCacheManager().

void fde::dumpStats ( StoreEntry dumpEntry,
int  fdNumber 
) const
void fde::noteUse ( )
inline

Definition at line 76 of file fde.h.

References pconn.

bool fde::readPending ( int  fdNumber) const

Definition at line 22 of file fde.cc.

References FD_SOCKET, Comm::MonitorsRead(), read_handler, and type.

Referenced by dumpStats().

char const * fde::remoteAddr ( ) const

Definition at line 84 of file fde.cc.

References buf, FD_SOCKET, ipaddr, local_addr, MAX_IPSTRLEN, remote_port, Ip::Address::toUrl(), and type.

Referenced by dumpStats().

Member Data Documentation

int64_t fde::bytes_read = 0

Definition at line 111 of file fde.h.

Referenced by dumpStats(), fd_bytes(), and fdDumpOpen().

int64_t fde::bytes_written = 0

Definition at line 112 of file fde.h.

Referenced by dumpStats(), fd_bytes(), and fdDumpOpen().

ClientInfo* fde::clientInfo = nullptr

Definition at line 120 of file fde.h.

Referenced by BandwidthBucket::SelectBucket().

AsyncCall::Pointer fde::closeHandler

Definition at line 134 of file fde.h.

Referenced by commCallCloseHandlers(), and examine_select().

char fde::desc[FD_DESC_SZ]

Definition at line 93 of file fde.h.

Referenced by dumpStats(), examine_select(), fd_close(), fd_note(), fdDumpOpen(), and fde().

_fde_disk fde::disk

Definition at line 125 of file fde.h.

Referenced by diskHandleRead(), diskHandleWrite(), and file_write().

Security::ContextPointer fde::dynamicTlsContext

Definition at line 139 of file fde.h.

Referenced by comm_close_complete().

unsigned fde::epoll_state = 0

Definition at line 123 of file fde.h.

Referenced by fd_open().

AsyncCall::Pointer fde::halfClosedReader

Definition at line 135 of file fde.h.

char fde::ipaddr[MAX_IPSTRLEN]

Definition at line 92 of file fde.h.

Referenced by comm_connect_addr(), fde(), Comm::TcpAcceptor::oldAccept(), and remoteAddr().

void* fde::lifetime_data = nullptr

Definition at line 133 of file fde.h.

Ip::Address fde::local_addr
unsigned int fde::nfmarkFromServer = 0

Stores the Netfilter mark value of the connection from the remote server. See FwdState::dispatch(). Note that this differs to nfmarkToServer in that this is the value we receive from the, connection, whereas nfmarkToServer is the value to set on packets leaving* Squid.

Definition at line 150 of file fde.h.

nfmark_t fde::nfmarkToServer = 0

The netfilter mark for packets going towards the server. See also nfmarkFromServer.

Definition at line 89 of file fde.h.

struct { ... } fde::pconn

Referenced by noteUse().

void* fde::read_data = nullptr

Definition at line 127 of file fde.h.

Referenced by Comm::DoSelect(), file_close(), and Comm::SetSelect().

PF* fde::read_handler
READ_HANDLER* fde::read_method

Definition at line 136 of file fde.h.

Referenced by fd_open(), and fde().

unsigned short fde::remote_port = 0

Definition at line 84 of file fde.h.

Referenced by comm_connect_addr(), Comm::TcpAcceptor::oldAccept(), and remoteAddr().

int fde::sock_family = 0

Definition at line 138 of file fde.h.

Referenced by _comm_close(), and comm_close_complete().

fde * fde::Table = nullptr
static

Definition at line 81 of file fde.h.

time_t fde::timeout = 0
tos_t fde::tosFromServer = '\0'

Stores the TOS flags of the packets from the remote server. See FwdState::dispatch(). Note that this differs to tosToServer in that this is the value we receive from the, connection, whereas tosToServer is the value to set on packets leaving* Squid.

Definition at line 145 of file fde.h.

Referenced by Ip::Qos::getTosFromServer().

tos_t fde::tosToServer = '\0'

The TOS value for packets going towards the server. See also tosFromServer.

Definition at line 87 of file fde.h.

unsigned int fde::type = 0
int fde::uses = 0

Definition at line 115 of file fde.h.

void* fde::write_data = nullptr

Definition at line 129 of file fde.h.

Referenced by Comm::ConnOpener::cleanFd(), Comm::DoSelect(), and Comm::SetSelect().

PF* fde::write_handler
WRITE_HANDLER* fde::write_method

Definition at line 137 of file fde.h.

Referenced by fd_open(), and fde().

MessageBucket::Pointer fde::writeQuotaHandler
time_t fde::writeStart = 0

Definition at line 132 of file fde.h.


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors