19 OSCSenderManager::OSCSenderManager()
21 mSenders.setThreadProtection(YES);
22 mSending.setThreadProtection(YES);
25 OSCSenderManager::~OSCSenderManager()
33 if (mSending.findEquals(applicationName, last))
36 mSending.append(applicationName);
40 TTErr err = mSenders.lookup(applicationName, last);
46 anOscSender.
set(
"address", ip);
47 anOscSender.
set(
"port", port);
49 TTValue cache(anOscSender, ip, port);
50 mSenders.append(applicationName, cache);
54 anOscSender = last[0];
58 if (lastIp == ip && lastPort == port)
63 anOscSender.
set(
"address", ip);
64 anOscSender.
set(
"port", port);
66 TTValue cache(anOscSender, ip, port);
67 mSenders.remove(applicationName);
68 mSenders.append(applicationName, cache);
72 err = anOscSender.
send(
"send", message);
75 mSending.remove(applicationName);
std::uint16_t TTUInt16
16 bit unsigned integer
TTErr send(const TTSymbol aName)
Send a message to this object with no arguments.
Create and use Jamoma object instances.
TTErr set(const TTSymbol aName, T aValue)
Set an attribute value for an object.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
A OSC send object manager.
Something went wrong, but what exactly is not known. Typically used for context-specific problems...
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
[doxygenAppendixC_copyExample]