cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cocos2d::network Namespace Reference

Classes

class  HttpClient
 Singleton that handles asynchrounous http requests Once the request completed, a callback will issued in main thread when it provided during make request. More...
 
class  HttpRequest
 defines the object which users must packed for HttpClient::send(HttpRequest*) method. More...
 
class  HttpResponse
 defines the object which users will receive at onHttpCompleted(sender, HttpResponse) callback Please refer to samples/TestCpp/Classes/ExtensionTest/NetworkTest/HttpClientTest.cpp as a sample More...
 
class  SIOClient
 A single connection to a socket.io endpoint. More...
 
class  SocketIO
 Singleton and wrapper class to provide static creation method as well as registry of all sockets. More...
 
class  WebSocket
 

Typedefs

typedef std::function< void(HttpClient
*client, HttpResponse
*response)> 
ccHttpRequestCallback
typedef void(cocos2d::Ref::* SEL_HttpResponse )(HttpClient *client, HttpResponse *response)
typedef std::function< void(SIOClient
*, const std::string &)> 
SIOEvent
typedef std::unordered_map
< std::string, SIOEvent
EventRegistry

Typedef Documentation

typedef std::function<void(HttpClient*
client, HttpResponse* response)>
ccHttpRequestCallback
typedef std::unordered_map
<std::string, SIOEvent>
EventRegistry
typedef void(cocos2d::Ref::*
SEL_HttpResponse)(HttpClient
*client, HttpResponse
*response)
typedef void(cocos2d::Ref::*
SEL_HttpResponse)(HttpClient
*client, HttpResponse
*response)
typedef void(cocos2d::Ref::*
SEL_HttpResponse)(HttpClient
*client, HttpResponse
*response)
typedef std::function<void(SIOClient*,
const std::string&)> SIOEvent
var SIOEvent
local SIOEvent