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...
 
TunnelStateDatareadPending
 
EVHreadPendingFunc
 
DelayId delayId
 

Detailed Description

Definition at line 119 of file tunnel.cc.

Constructor & Destructor Documentation

◆ Connection()

TunnelStateData::Connection::Connection ( )
inline

◆ ~Connection()

TunnelStateData::Connection::~Connection ( )

Definition at line 331 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

Definition at line 340 of file tunnel.cc.

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

◆ closeIfOpen()

void TunnelStateData::Connection::closeIfOpen ( )

Definition at line 645 of file tunnel.cc.

References conn, and Comm::IsConnOpen().

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

◆ dataSent()

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

Definition at line 574 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 362 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 1151 of file tunnel.cc.

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

◆ write()

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

Definition at line 587 of file tunnel.cc.

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

Referenced by Connection(), TunnelStateData::copy(), and TunnelStateData::notePeerReadyToShovel().

Member Data Documentation

◆ buf

◆ conn

◆ delayedLoops

uint8_t TunnelStateData::Connection::delayedLoops

◆ delayId

DelayId TunnelStateData::Connection::delayId

Definition at line 155 of file tunnel.cc.

Referenced by TunnelStateData::connectedToPeer().

◆ len

◆ readPending

TunnelStateData* TunnelStateData::Connection::readPending

◆ readPendingFunc

EVH* TunnelStateData::Connection::readPendingFunc

Definition at line 151 of file tunnel.cc.

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

◆ size_ptr

uint64_t* TunnelStateData::Connection::size_ptr

Definition at line 144 of file tunnel.cc.

Referenced by TunnelStateData::TunnelStateData().

◆ writer


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors