sends a single control message, notifying the Sink More...

#include <HttpControlMsg.h>

Inheritance diagram for HttpControlMsgSink:
Collaboration diagram for HttpControlMsgSink:

Public Types

typedef CbcPointer< AsyncJobPointer

Public Member Functions

 HttpControlMsgSink ()
virtual void sendControlMsg (HttpControlMsg msg)=0
 called to send the 1xx message and notify the Source More...
virtual void doneWithControlMsg ()
void wroteControlMsg (const CommIoCbParams &)
 callback to handle Comm::Write completion More...
bool canBeCalled (AsyncCall &call) const
 whether we can be called More...
void callStart (AsyncCall &call)
virtual void callEnd ()
 called right after the called job method More...
virtual void callException (const std::exception &e)
 called when the job throws during an async call More...
virtual void * toCbdata ()=0

Static Public Member Functions

static Pointer Start (AsyncJob *job)
 starts a freshly created job (i.e., makes the job asynchronous) More...

Public Attributes

AsyncCall::Pointer cbControlMsgSent
 Call to schedule when the control msg has been sent. More...

Protected Member Functions

void deleteThis (const char *aReason)
void mustStop (const char *aReason)
bool done () const
 the job is destroyed in callEnd() when done() More...
virtual void start ()
 called by AsyncStart; do not call directly More...
virtual bool doneAll () const
 whether positive goal has been reached More...
virtual void swanSong ()
virtual const char * status () const
 internal cleanup; do not call directly More...

Protected Attributes

const char * stopReason
 reason for forcing done() to be true More...
const char * typeName
 kid (leaf) class name, for debugging More...
AsyncCall::Pointer inCall
 the asynchronous call being handled, if any More...
const InstanceId< AsyncJobid
 job identifier More...

Detailed Description

Definition at line 28 of file HttpControlMsg.h.

Member Typedef Documentation

Definition at line 34 of file AsyncJob.h.

Constructor & Destructor Documentation

HttpControlMsgSink::HttpControlMsgSink ( )

Definition at line 31 of file HttpControlMsg.h.

Member Function Documentation

void AsyncJob::callEnd ( )
void AsyncJob::callStart ( AsyncCall call)
bool AsyncJob::canBeCalled ( AsyncCall call) const

Definition at line 101 of file

References AsyncCall::cancel(), debugs, HERE(), AsyncJob::inCall, and NULL.

void AsyncJob::deleteThis ( const char *  aReason)
bool AsyncJob::done ( ) const

Definition at line 90 of file

References AsyncJob::doneAll(), NULL, and AsyncJob::stopReason.

Referenced by AsyncJob::callEnd(), and Downloader::downloadFinished().

void HttpControlMsgSink::doneWithControlMsg ( )

Reimplemented in ConnStateData.

Definition at line 15 of file

References cbControlMsgSent, and ScheduleCallHere.

Referenced by ConnStateData::doneWithControlMsg(), and wroteControlMsg().

virtual void HttpControlMsgSink::sendControlMsg ( HttpControlMsg  msg)
pure virtual

Implemented in ConnStateData.

virtual void* CbdataParent::toCbdata ( )
pure virtualinherited
void HttpControlMsgSink::wroteControlMsg ( const CommIoCbParams params)

Member Data Documentation

AsyncCall::Pointer HttpControlMsgSink::cbControlMsgSent
const InstanceId<AsyncJob> AsyncJob::id

Definition at line 72 of file AsyncJob.h.

AsyncCall::Pointer AsyncJob::inCall
const char* AsyncJob::stopReason

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






Web Site Translations