A single connection to a socket.io endpoint. More...
#include <SocketIO.h>
Public Member Functions | |
SIOClient (const std::string &host, int port, const std::string &path, SIOClientImpl *impl, SocketIO::SIODelegate &delegate) | |
SIOClient ( local host, local port, local path, local impl, local delegate) | |
virtual | ~SIOClient (void) |
SocketIO::SIODelegate * | getDelegate () |
Returns the delegate for the client. More... | |
void | disconnect () |
Disconnect from the endpoint, onClose will be called on the delegate when comlpete. More... | |
void | send (std::string s) |
Send a message to the socket.io server. More... | |
void | emit (std::string eventname, std::string args) |
The delegate class to process socket.io events. More... | |
void | on (const std::string &eventName, SIOEvent e) |
Used to resgister a socket.io event callback Event argument should be passed using CC_CALLBACK2(&Base::function, this) More... | |
local | on ( local eventName, local e) |
Used to resgister a socket.io event callback Event argument should be passed using CC_CALLBACK2(&Base::function, this) More... | |
void | setTag (const char *tag) |
const char * | getTag () |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Release the ownership immediately. More... | |
Ref * | autorelease () |
Release the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Friends | |
class | SIOClientImpl |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
A single connection to a socket.io endpoint.
SIOClient | ( | const std::string & | host, |
int | port, | ||
const std::string & | path, | ||
SIOClientImpl * | impl, | ||
SocketIO::SIODelegate & | delegate | ||
) |
var SIOClient | ( | var | host, |
var | port, | ||
var | path, | ||
var | impl, | ||
var | delegate | ||
) |
local SIOClient | ( | local | host, |
local | port, | ||
local | path, | ||
local | impl, | ||
local | delegate | ||
) |
|
virtual |
|
virtual |
|
virtual |
void disconnect | ( | ) |
Disconnect from the endpoint, onClose will be called on the delegate when comlpete.
var disconnect | ( | ) |
Disconnect from the endpoint, onClose will be called on the delegate when comlpete.
local disconnect | ( | ) |
Disconnect from the endpoint, onClose will be called on the delegate when comlpete.
void emit | ( | std::string | eventname, |
std::string | args | ||
) |
The delegate class to process socket.io events.
var emit | ( | var | eventname, |
var | args | ||
) |
The delegate class to process socket.io events.
local emit | ( | local | eventname, |
local | args | ||
) |
The delegate class to process socket.io events.
|
inline |
Returns the delegate for the client.
|
inline |
Returns the delegate for the client.
|
inline |
Returns the delegate for the client.
|
inline |
|
inline |
|
inline |
void on | ( | const std::string & | eventName, |
SIOEvent | e | ||
) |
Used to resgister a socket.io event callback Event argument should be passed using CC_CALLBACK2(&Base::function, this)
var on | ( | var | eventName, |
var | e | ||
) |
Used to resgister a socket.io event callback Event argument should be passed using CC_CALLBACK2(&Base::function, this)
local on | ( | local | eventName, |
local | e | ||
) |
Used to resgister a socket.io event callback Event argument should be passed using CC_CALLBACK2(&Base::function, this)
void send | ( | std::string | s) |
Send a message to the socket.io server.
var send | ( | var | s) |
Send a message to the socket.io server.
local send | ( | local | s) |
Send a message to the socket.io server.
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |