Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Network

Namespaces

 cocos2d
 Copyright 2013 BlackBerry Inc.
 

Classes

class  HttpClient
 Singleton that handles asynchronous http requests. More...
 
class  HttpRequest
 Defines the object which users must packed for HttpClient::send(HttpRequest*) method. More...
 
class  HttpRequest::_prxy
 This sub class is just for migration SEL_CallFuncND to SEL_HttpResponse,someday this way will be removed. More...
 
class  HttpResponse
 defines the object which users will receive at onHttpCompleted(sender, HttpResponse) callback. More...
 
class  SocketIO
 Singleton and wrapper class to provide static creation method as well as registry of all sockets. More...
 
class  SocketIO::SIODelegate
 The delegate class to process socket.io events. More...
 
class  SIOClient
 A single connection to a socket.io endpoint. More...
 
class  Uri
 Class representing a URI. More...
 
class  WebSocket
 WebSocket is wrapper of the libwebsockets-protocol, let the develop could call the websocket easily. More...
 
struct  WebSocket::Data
 Data structure for message. More...
 
class  WebSocket::Delegate
 The delegate class is used to process websocket events. More...
 

Enumerations

enum  Type
 The HttpRequest type enum used in the HttpRequest::setRequestType.
 
enum  ErrorCode { , CONNECTION_FAILURE, UNKNOWN }
 ErrorCode enum used to represent the error in the websocket. More...
 
enum  State { , OPEN, CLOSING, CLOSED }
 State enum used to represent the Websocket state. More...
 

Detailed Description

Enumeration Type Documentation

enum ErrorCode
strong

ErrorCode enum used to represent the error in the websocket.

Enumerator
CONNECTION_FAILURE 

< value 0

UNKNOWN 

< value 1

var ErrorCode
strong

ErrorCode enum used to represent the error in the websocket.

Enumerator
CONNECTION_FAILURE 

< value 0

UNKNOWN 

< value 1

local ErrorCode
strong

ErrorCode enum used to represent the error in the websocket.

Enumerator
CONNECTION_FAILURE 

< value 0

UNKNOWN 

< value 1

enum State
strong

State enum used to represent the Websocket state.

Enumerator
OPEN 

< value 0

CLOSING 

< value 1

CLOSED 

< value 2

var State
strong

State enum used to represent the Websocket state.

Enumerator
OPEN 

< value 0

CLOSING 

< value 1

CLOSED 

< value 2

local State
strong

State enum used to represent the Websocket state.

Enumerator
OPEN 

< value 0

CLOSING 

< value 1

CLOSED 

< value 2