Jamoma API
0.6.0.a19
|
Create a websocket server. More...
#include <TTWebSocket.h>
Public Member Functions | |
TTWebSocket (const TTObjectBasePtr owner, const TTUInt16 port, const TTString &htmlPath) | |
Create a socket to receive websocket messages. More... | |
TTWebSocket () | |
Create a socket to send websocket messages. | |
TTErr | bind () |
Bind websocket server. | |
TTErr | SendMessage (TTSymbol &message) |
Send message. More... | |
Public Attributes | |
TTObjectBasePtr | mOwner |
The object that instantiated this socket and will receive notifications. | |
Create a websocket server.
Definition at line 47 of file TTWebSocket.h.
TTWebSocket::TTWebSocket | ( | const TTObjectBasePtr | owner, |
const TTUInt16 | port, | ||
const TTString & | htmlPath | ||
) |
Create a socket to receive websocket messages.
owner | the TTObjectBase to notify |
port | the port number |
htmlPath | the path to index.html file |
Definition at line 201 of file TTWebSocket.cpp.
References mOwner.
Send message.
message | message to send |
Definition at line 255 of file TTWebSocket.cpp.
References TTSymbol::c_str(), kTTErrGeneric, kTTErrNone, TTString::size(), and TTLogError().