L3D Cube Library
 All Classes Functions Pages
Public Member Functions | Public Attributes | List of all members
SparkWebSocketServer Class Reference

Public Member Functions

 SparkWebSocketServer (TCPServer &server)
 
void setCallBack (CallBack &callBack)
 
bool handshake (TCPClient &client)
 
bool getData (String &data, TCPClient &client)
 Read data from client. More...
 
void sendData (const char *str, TCPClient &client)
 Send a string to a client. More...
 
void sendData (String str, TCPClient &client)
 Send a string to a client. More...
 
void doIt ()
 

Public Attributes

CallBack cBack
 

Member Function Documentation

bool SparkWebSocketServer::getData ( String &  data,
TCPClient &  client 
)

Read data from client.

Parameters
dataString to read the received data into.
clientTCPClient to get the data from.
void SparkWebSocketServer::sendData ( const char *  str,
TCPClient &  client 
)

Send a string to a client.

void SparkWebSocketServer::sendData ( String  str,
TCPClient &  client 
)

Send a string to a client.


The documentation for this class was generated from the following files: