Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Attributes

HttpHandler Class Reference

Http class. More...

#include <HttpHandler.h>

List of all members.

Public Member Functions

 HttpHandler ()
 ~HttpHandler ()
void PostTime (const char *username, float time)
char * GetMyIP ()
char * GetScores ()

Static Public Member Functions

static int32 GotHeaders (void *void1, void *void2)
static int32 GotData (void *void1, void *void2)

Protected Types

enum  HTTPStatus { kNone, kDownloading, kOK, kError }
 

Status of the http object.


enum  HTTPTest { kHead, kGet, kSecure }
 

The test status of the http object.


Static Protected Attributes

static CIwHTTP * m_httpObject
 The Marmalade http object.
static char * m_result
 Result of the http request.
static char * m_secureResult
 Result of https requests.
static uint32 m_len
 Length of message.
static HTTPStatus m_status
 The http status.
static HTTPTest m_testType
 Http test type.
static bool m_headResult
 Result of http request.

Detailed Description

Http class.

Simplifies Http POST and GET requests.


Constructor & Destructor Documentation

HttpHandler::HttpHandler (  ) 

Constructor.

Create a new http handler.

HttpHandler::~HttpHandler (  ) 

Destructor.

Destrouy the handler and release all associated memory.


Member Function Documentation

char * HttpHandler::GetMyIP (  ) 

Get my ip.

Return my ip address.

Returns:
char* ip address.
char * HttpHandler::GetScores (  ) 

Get my score.

Return my score.

Returns:
char* score.
int32 HttpHandler::GotData ( void *  void1,
void *  void2 
) [static]

Got data.

Check if http data has been recieved.

Parameters:
[in] void1 Unknown.
[in] void2 Unknown.
Returns:
int32 representing whether data has been received.
int32 HttpHandler::GotHeaders ( void *  void1,
void *  void2 
) [static]

Got headers.

Check if http headers have been recieved.

Parameters:
[in] void1 Unknown.
[in] void2 Unknown.
Returns:
int32 representing whether headers have been received.
void HttpHandler::PostTime ( const char *  username,
float  time 
)

Post time.

Post a match time and username to the highscore server.

Parameters:
[in] username The username.
[in] time The match time.

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations