Jamoma API  0.6.0.a19
WebSocketSenderManager.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup modularWebSocket
4  *
5  * @brief A WebSocket send object manager
6  *
7  * @details
8  *
9  * @authors Théo de la Hogue, Laurent Garnier
10  *
11  * @copyright Copyright © 2013, Théo de la Hogue @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #ifndef WEBSOCKET_SENDER_MANAGER
18 #define WEBSOCKET_SENDER_MANAGER
19 
20 #include "WebSocket.h"
21 
22 class WebSocket;
23 typedef WebSocket* WebSocketPtr;
24 
25 class WebSocketSenderManager {
26 
27 private:
28  TTHash mSenders;
29 
30 public:
31 
32  WebSocketSenderManager();
33  virtual ~WebSocketSenderManager();
34 
35  // check if the parameter are still the same and change the parameter if not
36  // if the sender doesn't exist it adds a sender
37  TTObject lookup(TTSymbol applicationName);
38 
39 private:
40  // add a new sender for an application
41  TTObject add(TTSymbol applicationName);
42 };
43 typedef WebSocketSenderManager* WebSocketSenderManagerPtr;
44 
45 #endif // WEBSOCKET_SENDER_MANAGER
It's the WebSocket protocol.
Create and use Jamoma object instances.
Definition: TTObject.h:29
Maintain a collection of TTValue objects indexed by TTSymbol pointers.
Definition: TTHash.h:36
Create a web socket plugin.
Definition: WebSocket.h:33
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26