Jamoma API  0.6.0.a19
TTOscSend.h
1 /*
2  * Jamoma OSC Sender
3  * Copyright © 2011, Théo de la Hogue
4  *
5  * License: This code is licensed under the terms of the "New BSD License"
6  * http://creativecommons.org/licenses/BSD/
7  */
8 
9 #ifndef __TT_OSCSEND_H__
10 #define __TT_OSCSEND_H__
11 
12 #include "TTFoundationAPI.h"
13 #include "TTOscSocket.h"
14 
15 /** TTOscSend is ...
16  */
17 class TTOscSend : public TTDataObjectBase {
19 
20  TTSymbol mAddress; ///< www.jamoma.org, 192.168.1.1, etc.
21  TTUInt16 mPort; ///< port number
22  TTOscSocketPtr mSocket;
23 
24  // internal helper method
25  void connect();
26 
27  /** Setter */
28  TTErr setAddress(const TTValue& value);
29 
30  /** Setter */
31  TTErr setPort(const TTValue& value);
32 
33  /** Transmit a message using a <TTSymbolPtr message, TTValuePtr arguments> value */
34  TTErr send(const TTValue& value, TTValue& unusedOutput);
35 
36 };
37 
38 
39 #endif // __TT_OSCSEND_H__
std::uint16_t TTUInt16
16 bit unsigned integer
Definition: TTBase.h:176
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
TTOscSocket is ...
Definition: TTOscSocket.h:39
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26
TTOscSend is ...
Definition: TTOscSend.h:17
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