Jamoma API  0.6.0.a19
TTWebSend.h
1 /*
2  * @file TTWebSend.h
3  * @group network library
4  * @brief Jamoma WebSocket Sender
5  * @see TTWebSocket, TTWebReceive
6  *
7  * @copyright © 2013, Laurent Garnier
8  * License: This code is licensed under the terms of the "New BSD License"
9  * http://creativecommons.org/licenses/BSD/
10  */
11 
12 #ifndef __TT_WEB_SEND_H__
13 #define __TT_WEB_SEND_H__
14 
15 #include "TTFoundationAPI.h"
16 #include "TTWebSocket.h"
17 
18 /**
19  * TTWebSend is a websocket protocol sender class
20  */
21 class TTWebSend : public TTDataObjectBase {
23 
24  TTWebSocketPtr mSocket;
25 
26  // internal helper method
27  void connect();
28 
29  /** Transmit a message using a <TTSymbolPtr message, TTValuePtr arguments> value */
30  TTErr send(const TTValue& value, TTValue& unusedOutput);
31 
32 };
33 
34 
35 #endif // __TT_WEB_SEND_H__
Create a websocket server.
Definition: TTWebSocket.h:47
TTDataObjectBase is the base class for all data generating and processing objects.
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
TTWebSend is a websocket protocol sender class.
Definition: TTWebSend.h:21
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34