tut::HTTPClientTestData Struct Reference

Collaboration diagram for tut::HTTPClientTestData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HTTPClientTestData ()
 ~HTTPClientTestData ()
void setupTheServer ()
void runThePump (float timeout=100.0f)
void killServer ()

Protected Member Functions

void ensureStatusOK ()
void ensureStatusError ()
LLSD getResult ()
LLHTTPClient::ResponderPtr newResult ()

Protected Attributes

bool mSawError
U32 mStatus
std::string mReason
bool mSawCompleted
LLSD mResult
bool mResultDeleted

Private Attributes

apr_pool_tmPool
LLPumpIOmServerPump
LLPumpIOmClientPump

Friends

class Result

Classes

class  Result

Detailed Description

Definition at line 87 of file llhttpclient_tut.cpp.


Constructor & Destructor Documentation

tut::HTTPClientTestData::HTTPClientTestData (  )  [inline]

Definition at line 90 of file llhttpclient_tut.cpp.

References mClientPump, mPool, mServerPump, NULL, and LLHTTPClient::setPump().

tut::HTTPClientTestData::~HTTPClientTestData (  )  [inline]

Definition at line 99 of file llhttpclient_tut.cpp.

References mClientPump, mPool, and mServerPump.


Member Function Documentation

void tut::HTTPClientTestData::ensureStatusError (  )  [inline, protected]

Definition at line 158 of file llhttpclient_tut.cpp.

References mSawError.

void tut::HTTPClientTestData::ensureStatusOK (  )  [inline, protected]

Definition at line 147 of file llhttpclient_tut.cpp.

References llformat(), mSawError, and mStatus.

LLSD tut::HTTPClientTestData::getResult (  )  [inline, protected]

Definition at line 166 of file llhttpclient_tut.cpp.

References mResult.

void tut::HTTPClientTestData::killServer (  )  [inline]

Definition at line 134 of file llhttpclient_tut.cpp.

References mServerPump, and NULL.

LLHTTPClient::ResponderPtr tut::HTTPClientTestData::newResult (  )  [inline, protected]

Definition at line 226 of file llhttpclient_tut.cpp.

References tut::HTTPClientTestData::Result::build(), LLSD::clear(), mResult, mResultDeleted, mSawCompleted, mSawError, and mStatus.

void tut::HTTPClientTestData::runThePump ( float  timeout = 100.0f  )  [inline]

Definition at line 114 of file llhttpclient_tut.cpp.

References LLPumpIO::callback(), LLTimer::hasExpired(), mClientPump, mSawCompleted, mServerPump, LLPumpIO::pump(), and LLTimer::setTimerExpirySec().

void tut::HTTPClientTestData::setupTheServer (  )  [inline]

Definition at line 106 of file llhttpclient_tut.cpp.

References LLHTTPRegistrar::buildAllServices(), LLIOHTTPServer::create(), mPool, mServerPump, and LLHTTPStandardServices::useServices().


Friends And Related Function Documentation

friend class Result [friend]

Definition at line 223 of file llhttpclient_tut.cpp.


Member Data Documentation

LLPumpIO* tut::HTTPClientTestData::mClientPump [private]

Definition at line 143 of file llhttpclient_tut.cpp.

Referenced by HTTPClientTestData(), runThePump(), and ~HTTPClientTestData().

apr_pool_t* tut::HTTPClientTestData::mPool [private]

Definition at line 141 of file llhttpclient_tut.cpp.

Referenced by HTTPClientTestData(), setupTheServer(), and ~HTTPClientTestData().

std::string tut::HTTPClientTestData::mReason [protected]

Definition at line 174 of file llhttpclient_tut.cpp.

Referenced by tut::HTTPClientTestData::Result::error().

LLSD tut::HTTPClientTestData::mResult [protected]

Definition at line 176 of file llhttpclient_tut.cpp.

Referenced by getResult(), newResult(), and tut::HTTPClientTestData::Result::result().

bool tut::HTTPClientTestData::mResultDeleted [protected]

Definition at line 177 of file llhttpclient_tut.cpp.

Referenced by newResult(), and tut::HTTPClientTestData::Result::~Result().

bool tut::HTTPClientTestData::mSawCompleted [protected]

Definition at line 175 of file llhttpclient_tut.cpp.

Referenced by tut::HTTPClientTestData::Result::completed(), newResult(), and runThePump().

bool tut::HTTPClientTestData::mSawError [protected]

Definition at line 172 of file llhttpclient_tut.cpp.

Referenced by ensureStatusError(), ensureStatusOK(), tut::HTTPClientTestData::Result::error(), and newResult().

LLPumpIO* tut::HTTPClientTestData::mServerPump [private]

Definition at line 142 of file llhttpclient_tut.cpp.

Referenced by HTTPClientTestData(), killServer(), runThePump(), setupTheServer(), and ~HTTPClientTestData().

U32 tut::HTTPClientTestData::mStatus [protected]

Definition at line 173 of file llhttpclient_tut.cpp.

Referenced by ensureStatusOK(), tut::HTTPClientTestData::Result::error(), and newResult().


The documentation for this struct was generated from the following file:
Generated on Thu Jul 1 06:12:06 2010 for Second Life Viewer by  doxygen 1.4.7