cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
Singleton that handles asynchrounous http requests Once the request completed, a callback will issued in main thread when it provided during make request NA NA. More...
#include <HttpClient.h>
Public Member Functions | |
void | send (CCHttpRequest *request) |
Add a get request to task queue. More... | |
void | setTimeoutForConnect (int value) |
Change the connect timeout. More... | |
int | getTimeoutForConnect () |
Get connect timeout. More... | |
void | setTimeoutForRead (int value) |
Change the download timeout. More... | |
int | getTimeoutForRead () |
Get download timeout. More... | |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
NA. More... | |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
CCObject (const CCObject &) | |
CCObject & | operator= (const CCObject &) |
virtual void | encodeWithCoder (DS_Dictionary *) |
virtual bool | canEncode () |
CCObjectType | getObjType () const |
virtual int | getTag () const |
virtual void | setTag (int nTag) |
void | setObjType (CCObjectType) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static CCHttpClient * | getInstance () |
Return the shared instance. More... | |
static void | destroyInstance () |
Relase the shared instance. More... | |
![]() | |
static CCObject * | createWithCoder (DS_Dictionary *) |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
int | m_nTag |
int | m_eObjType |
unsigned int | m_uObjectIdxInArray |
Singleton that handles asynchrounous http requests Once the request completed, a callback will issued in main thread when it provided during make request NA NA.
|
static |
Relase the shared instance.
|
static |
Return the shared instance.
|
inline |
Get connect timeout.
|
inline |
Get download timeout.
void send | ( | CCHttpRequest * | request | ) |
Add a get request to task queue.
request | a CCHttpRequest object, which includes url, response callback etc. please make sure request->_requestData is clear before calling "send" here. |
|
inline |
Change the connect timeout.
timeout |
|
inline |
Change the download timeout.
value |