Http class. More...
#include <HttpHandler.h>
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. | |
Http class.
Simplifies Http POST and GET requests.
| HttpHandler::HttpHandler | ( | ) |
Constructor.
Create a new http handler.
| HttpHandler::~HttpHandler | ( | ) |
Destructor.
Destrouy the handler and release all associated memory.
| char * HttpHandler::GetMyIP | ( | ) |
Get my ip.
Return my ip address.
| char * HttpHandler::GetScores | ( | ) |
Get my score.
Return my score.
| int32 HttpHandler::GotData | ( | void * | void1, | |
| void * | void2 | |||
| ) | [static] |
Got data.
Check if http data has been recieved.
| [in] | void1 | Unknown. |
| [in] | void2 | Unknown. |
| int32 HttpHandler::GotHeaders | ( | void * | void1, | |
| void * | void2 | |||
| ) | [static] |
Got headers.
Check if http headers have been recieved.
| [in] | void1 | Unknown. |
| [in] | void2 | Unknown. |
| void HttpHandler::PostTime | ( | const char * | username, | |
| float | time | |||
| ) |
Post time.
Post a match time and username to the highscore server.
| [in] | username | The username. |
| [in] | time | The match time. |
1.7.1