#include <WebSocket.h>
|
| | WebSocket () |
| virtual | ~WebSocket () |
| bool | init (const Delegate &delegate, const std::string &url, const std::vector< std::string > *protocols=NULL) |
| | @ More...
|
| |
| void | send (const std::string &message) |
| | Sends string data to websocket server. More...
|
| |
| void | send (const unsigned char *binaryMsg, unsigned int len) |
| | Sends binary data to websocket server. More...
|
| |
| var | send ( var binaryMsg, var len) |
| | Sends binary data to websocket server. More...
|
| |
| local | send ( local binaryMsg, local len) |
| | Sends binary data to websocket server. More...
|
| |
| void | close () |
| | Closes the connection to server. More...
|
| |
| var | close () |
| | Closes the connection to server. More...
|
| |
| local | close () |
| | Closes the connection to server. More...
|
| |
| State | getReadyState () |
| | Gets current state of connection. More...
|
| |
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.
| 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