Jamoma API  0.6.0.a19
OSCSenderManager.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup modularOSC
4  *
5  * @brief A OSC send object manager
6  *
7  * @details
8  *
9  * @authors Théo de la Hogue
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 OSC_SENDER_MANAGER
18 #define OSC_SENDER_MANAGER
19 
20 #include "OSC.h"
21 
22 class OSC;
23 typedef OSC* OSCPtr;
24 
25 class OSCSenderManager {
26 
27 private:
28  TTHash mSenders; ///< table of osc.send object
29  TTList mSending; ///< table of osc.send object currently used
30 
31 public:
32 
33  OSCSenderManager();
34  virtual ~OSCSenderManager();
35 
36  // check if the parameter are still the same and change the parameter if not
37  // if the sender doesn't exist it adds a sender
38  TTErr send(TTSymbol applicationName, TTSymbol ip, TTUInt16 port, const TTValue& message);
39 };
40 typedef OSCSenderManager* OSCSenderManagerPtr;
41 
42 #endif // OSC_SENDER_MANAGER
std::uint16_t TTUInt16
16 bit unsigned integer
Definition: TTBase.h:176
Maintain a collection of TTValue objects indexed by TTSymbol pointers.
Definition: TTHash.h:36
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26
The OSC Protocol.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34