#include <WebSocket.h>
Errors in websocket.
Enumerator |
---|
kErrorTimeout |
|
kErrorConnectionFailure |
|
kErrorUnknown |
|
Errors in websocket.
Enumerator |
---|
kErrorTimeout |
|
kErrorConnectionFailure |
|
kErrorUnknown |
|
Errors in websocket.
Enumerator |
---|
kErrorTimeout |
|
kErrorConnectionFailure |
|
kErrorUnknown |
|
Websocket state.
Enumerator |
---|
kStateConnecting |
|
kStateOpen |
|
kStateClosing |
|
kStateClosed |
|
Websocket state.
Enumerator |
---|
kStateConnecting |
|
kStateOpen |
|
kStateClosing |
|
kStateClosed |
|
Websocket state.
Enumerator |
---|
kStateConnecting |
|
kStateOpen |
|
kStateClosing |
|
kStateClosed |
|
Closes the connection to server.
Closes the connection to server.
Closes the connection to server.
Gets current state of connection.
Gets current state of connection.
Gets current state of connection.
bool init |
( |
const Delegate & |
delegate, |
|
|
const std::string & |
url, |
|
|
const std::vector< std::string > * |
protocols = NULL |
|
) |
| |
void send |
( |
const std::string & |
message) | |
|
Sends string data to websocket server.
Sends string data to websocket server.
local send |
( |
local |
message) | |
|
Sends string data to websocket server.
void send |
( |
const unsigned char * |
binaryMsg, |
|
|
unsigned int |
len |
|
) |
| |
Sends binary data to websocket server.
var send |
( |
var |
binaryMsg, |
|
|
var |
len |
|
) |
| |
Sends binary data to websocket server.
local send |
( |
local |
binaryMsg, |
|
|
local |
len |
|
) |
| |
Sends binary data to websocket server.
friend class
WebSocketCallbackWrapper |
|
friend |
var WebSocketCallbackWrapper |
|
friend |
local WebSocketCallbackWrapper |
|
friend |
friend class WsThreadHelper |
|
friend |
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x/extensions/network/WebSocket.h