Jamoma API  0.6.0.a19
TTOscReceive.h
1 /*
2  * Jamoma OSC Receiver
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_OSCRECEIVE_H__
10 #define __TT_OSCRECEIVE_H__
11 
12 #include "TTFoundationAPI.h"
13 #include "TTOscSocket.h"
14 
15 
16 /** TTOscReceive is ...
17  */
20 
21 public:
22  TTUInt16 mPort; ///< port number
23  TTOscSocketPtr mSocket;
24  TTObject mCallback; ///< an optionnal callback to get message and baton data back
25  TTThreadPtr mWaitThread; ///< a thread used to wait a connection status
26 
27  // internal method
28  TTErr bind();
29 
30  /** Setter */
31  TTErr setPort(const TTValue& value);
32 
33  /** Setter */
34  TTErr setMode(const TTValue& value);
35 
36  /** Callbacks from socket receive */
37  TTErr oscSocketReceive(const TTValue& message, TTValue& unusedOutput);
38 
39 };
41 
42 #endif // __TT_OSCRECEIVE_H__
std::uint16_t TTUInt16
16 bit unsigned integer
Definition: TTBase.h:176
TTUInt16 mPort
port number
Definition: TTOscReceive.h:22
Create and use Jamoma object instances.
Definition: TTObject.h:29
TTObject mCallback
an optionnal callback to get message and baton data back
Definition: TTOscReceive.h:24
TTDataObjectBase is the base class for all data generating and processing objects.
TTErr setPort(const TTValue &value)
Setter.
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
TTOscSocket is ...
Definition: TTOscSocket.h:39
TTErr oscSocketReceive(const TTValue &message, TTValue &unusedOutput)
Callbacks from socket receive.
TTThreadPtr mWaitThread
a thread used to wait a connection status
Definition: TTOscReceive.h:25
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
TTOscReceive is ...
Definition: TTOscReceive.h:18
TTErr setMode(const TTValue &value)
Setter.
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34