Details about a particular Comm IO callback event. More...

#include <IoCallback.h>

Collaboration diagram for Comm::IoCallback:

Public Member Functions

bool active () const
void setCallback (iocb_type type, AsyncCall::Pointer &cb, char *buf, FREE *func, int sz)
void selectOrQueueWrite ()
 called when fd needs to write but may need to wait in line for its quota More...
void cancel (const char *reason)
 Actively cancel the given callback. More...
void finish (Comm::Flag code, int xerrn)
 finish the IO operation imediately and schedule the callback with the current state. More...

Public Attributes

iocb_type type
Comm::ConnectionPointer conn
AsyncCall::Pointer callback
char * buf
int size
int offset
Comm::Flag errcode
int xerrno
unsigned int quotaQueueReserv
 reservation ID from CommQuotaQueue More...

Private Member Functions

void reset ()

Detailed Description

Definition at line 29 of file IoCallback.h.

Member Function Documentation

bool Comm::IoCallback::active ( ) const

Definition at line 45 of file IoCallback.h.

References callback, and NULL.

Referenced by comm_read_cancel(), Comm::ReadCancel(), and setCallback().

void Comm::IoCallback::cancel ( const char *  reason)

Definition at line 82 of file

References callback, and NULL.

Referenced by comm_read_cancel(), and Comm::ReadCancel().

void Comm::IoCallback::finish ( Comm::Flag  code,
int  xerrn 

Definition at line 110 of file

References assert, buf, callback, code, conn, debugs, CommCommonCbParams::fd, NULL, and ScheduleCallHere.

void Comm::IoCallback::reset ( )

Definition at line 93 of file

References buf, conn, and NULL.

void Comm::IoCallback::selectOrQueueWrite ( )
void Comm::IoCallback::setCallback ( Comm::iocb_type  t,
AsyncCall::Pointer cb,
char *  b,
int  sz 

Configure Comm::Callback for I/O

tIO callback type (read or write)
bufbuffer, if applicable
funcfreefunc, if applicable
szbuffer size

Definition at line 55 of file

References active(), assert, buf, callback, freefunc, NULL, offset, size, and type.

Member Data Documentation

char* Comm::IoCallback::buf

Definition at line 35 of file IoCallback.h.

Referenced by setCallback().

AsyncCall::Pointer Comm::IoCallback::callback

Definition at line 34 of file IoCallback.h.

Referenced by active(), comm_read_cancel(), Comm::ReadCancel(), and setCallback().

Comm::Flag Comm::IoCallback::errcode

Definition at line 39 of file IoCallback.h.

FREE* Comm::IoCallback::freefunc

Definition at line 36 of file IoCallback.h.

Referenced by setCallback().

int Comm::IoCallback::offset

Definition at line 38 of file IoCallback.h.

Referenced by setCallback().

unsigned int Comm::IoCallback::quotaQueueReserv
int Comm::IoCallback::size

Definition at line 37 of file IoCallback.h.

Referenced by setCallback().

iocb_type Comm::IoCallback::type

Definition at line 32 of file IoCallback.h.

Referenced by Comm::CallbackTableInit(), and setCallback().

int Comm::IoCallback::xerrno

Definition at line 40 of file IoCallback.h.

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






Web Site Translations