TunnelStateData::Connection Class Reference
Collaboration diagram for TunnelStateData::Connection:

Public Member Functions

 Connection ()
 ~Connection ()
int bytesWanted (int lower=0, int upper=INT_MAX) const
void bytesIn (int const &)
void setDelayId (DelayId const &)
void error (int const xerrno)
int debugLevelForError (int const xerrno) const
void closeIfOpen ()
void dataSent (size_t amount)
void write (const char *b, int size, AsyncCall::Pointer &callback, FREE *free_func)
 writes 'b' buffer, setting the 'writer' member to 'callback'. More...

Public Attributes

int len
char * buf
AsyncCall::Pointer writer
 pending Comm::Write callback More...
uint64_t * size_ptr
Comm::ConnectionPointer conn
 The currently connected connection. More...
uint8_t delayedLoops
 how many times a read on this connection has been postponed. More...

Private Attributes

DelayId delayId

Detailed Description

Definition at line 132 of file tunnel.cc.

Constructor & Destructor Documentation

◆ Connection()

TunnelStateData::Connection::Connection ( )

◆ ~Connection()

TunnelStateData::Connection::~Connection ( )

Definition at line 347 of file tunnel.cc.

References buf, eventDelete(), and safe_free.

Referenced by Connection().

Member Function Documentation

◆ bytesIn()

void TunnelStateData::Connection::bytesIn ( int const &  count)

◆ bytesWanted()

int TunnelStateData::Connection::bytesWanted ( int  lower = 0,
int  upper = INT_MAX 
) const

◆ closeIfOpen()

void TunnelStateData::Connection::closeIfOpen ( )

Definition at line 786 of file tunnel.cc.

References conn, and Comm::IsConnOpen().

Referenced by Connection(), TunnelStateData::informUserOfPeerError(), and tunnelTimeout().

◆ dataSent()

void TunnelStateData::Connection::dataSent ( size_t  amount)

Definition at line 715 of file tunnel.cc.

References assert, debugs, HERE(), and len.

Referenced by Connection(), TunnelStateData::writeClientDone(), and TunnelStateData::writeServerDone().

◆ debugLevelForError()

int TunnelStateData::Connection::debugLevelForError ( int const  xerrno) const

Definition at line 378 of file tunnel.cc.

References ignoreErrno().

Referenced by Connection().

◆ error()

void TunnelStateData::Connection::error ( int const  xerrno)

◆ setDelayId()

void TunnelStateData::Connection::setDelayId ( DelayId const &  newDelay)

Definition at line 1346 of file tunnel.cc.

Referenced by Connection(), switchToTunnel(), and tunnelConnectDone().

◆ write()

void TunnelStateData::Connection::write ( const char *  b,
int  size,
AsyncCall::Pointer callback,
FREE free_func 

Definition at line 728 of file tunnel.cc.

References callback, conn, and Comm::Write().

Referenced by Connection(), TunnelStateData::copy(), tunnelConnected(), and tunnelRelayConnectRequest().

Member Data Documentation

◆ buf

◆ conn

◆ delayedLoops

uint8_t TunnelStateData::Connection::delayedLoops

◆ delayId

DelayId TunnelStateData::Connection::delayId

Definition at line 168 of file tunnel.cc.

◆ len

◆ readPending

TunnelStateData* TunnelStateData::Connection::readPending

◆ readPendingFunc

EVH* TunnelStateData::Connection::readPendingFunc

Definition at line 164 of file tunnel.cc.

Referenced by TunnelStateData::copyRead(), and TunnelStateData::TunnelStateData().

◆ size_ptr

uint64_t* TunnelStateData::Connection::size_ptr

Definition at line 157 of file tunnel.cc.

Referenced by TunnelStateData::TunnelStateData().

◆ writer

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






Web Site Translations