torque Torque Game Engine Documentation
TGE Version 1.5.2

HTTPObject Class Reference

#include <httpObject.h>

Inheritance diagram for HTTPObject:

Inheritance graph
[legend]

Public Member Functions

void get (const char *hostName, const char *urlName, const char *query)
void post (const char *host, const char *path, const char *query, const char *post)
 HTTPObject ()
 ~HTTPObject ()
virtual U32 onDataReceive (U8 *buffer, U32 bufferLen)
virtual U32 onReceive (U8 *buffer, U32 bufferLen)
virtual void onConnected ()
virtual void onConnectFailed ()
virtual void onDisconnect ()
bool processLine (U8 *line)
 DECLARE_CONOBJECT (HTTPObject)

Static Public Member Functions

static void expandPath (char *dest, const char *path, U32 destSize)

Data Fields

U32 mStatus
F32 mVersion
U32 mContentLength
bool mChunkedEncoding
U32 mChunkSize
const char * mContentType
char * mHostName
char * mPath
char * mQuery
char * mPost
U8mBufferSave
U32 mBufferSaveSize

Protected Types

enum  ParseState {
  ParsingStatusLine,
  ParsingHeader,
  ParsingChunkHeader,
  ProcessingBody,
  ProcessingDone
}

Protected Attributes

ParseState mParseState
U32 mTotalBytes
U32 mBytesRemaining

Private Types

typedef TCPObject Parent

Member Typedef Documentation

typedef TCPObject HTTPObject::Parent [private]

Reimplemented from TCPObject.


Member Enumeration Documentation

enum HTTPObject::ParseState [protected]

Enumerator:
ParsingStatusLine 
ParsingHeader 
ParsingChunkHeader 
ProcessingBody 
ProcessingDone 


Constructor & Destructor Documentation

HTTPObject::HTTPObject (  ) 

HTTPObject::~HTTPObject (  ) 


Member Function Documentation

static void HTTPObject::expandPath ( char *  dest,
const char *  path,
U32  destSize 
) [static]

void HTTPObject::get ( const char *  hostName,
const char *  urlName,
const char *  query 
)

void HTTPObject::post ( const char *  host,
const char *  path,
const char *  query,
const char *  post 
)

virtual U32 HTTPObject::onDataReceive ( U8 buffer,
U32  bufferLen 
) [virtual]

virtual U32 HTTPObject::onReceive ( U8 buffer,
U32  bufferLen 
) [virtual]

Reimplemented from TCPObject.

virtual void HTTPObject::onConnected (  )  [virtual]

Reimplemented from TCPObject.

virtual void HTTPObject::onConnectFailed (  )  [virtual]

Reimplemented from TCPObject.

virtual void HTTPObject::onDisconnect (  )  [virtual]

Reimplemented from TCPObject.

bool HTTPObject::processLine ( U8 line  )  [virtual]

Reimplemented from TCPObject.

HTTPObject::DECLARE_CONOBJECT ( HTTPObject   ) 


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen