Vuo
0.6.1
|
VuoOsc implementation.
Classes | |
class | VuoOscInPacketListener |
This class maintains a list of trigger functions to be called when an OSC message is received. More... | |
class | VuoOscInSocket |
Opens a reusable UDP socket, attaches the specified listener to it (on a separate thread), and starts it receiving messages. More... | |
struct | VuoOscIn_internal |
Private data for a VuoOscIn instance. More... | |
Typedefs | |
typedef void(* | VuoOscReceivedMessageTrigger )(VuoOscMessage) |
A node's trigger method, to be called when an OSC message is received. | |
Functions | |
__attribute__ ((constructor)) static void VuoOscIn_init(void) | |
Initializes VuoOscInPool_semaphore . | |
void | VuoOscIn_destroy (VuoOscIn oi) |
Destroys an OSC server. | |
VuoOscIn | VuoOscIn_make (VuoInteger port) |
Creates a reference-counted object to manage receiving messages from a OSC device. | |
void | VuoOscIn_enableTriggers (VuoOscIn oi, VuoOutputTrigger(receivedMessage, VuoOscMessage)) |
Sets up the OSC server to call the trigger functions when it receives a message. | |
void | VuoOscIn_disableTriggers (VuoOscIn oi) |
Stops the OSC server from calling trigger functions when it receives a message. | |
Variables | |
std::map< unsigned int, VuoOscInSocket * > | VuoOscInPool |
Sockets, keyed by port. | |
dispatch_semaphore_t | VuoOscInPool_semaphore = NULL |
Synchronizes access to VuoOscInPool . | |
struct VuoOscIn_internal |
Class Members | ||
---|---|---|
unsigned int | port | The port to listen on. |
VuoOscReceivedMessageTrigger | receivedMessage | The trigger function to call when a newly-arrived OSC message has been parsed. |
typedef void(* VuoOscReceivedMessageTrigger)(VuoOscMessage) |
A node's trigger method, to be called when an OSC message is received.
__attribute__ | ( | (constructor) | ) |
Initializes VuoOscInPool_semaphore
.
void VuoOscIn_destroy | ( | VuoOscIn | oi | ) |
Destroys an OSC server.
void VuoOscIn_disableTriggers | ( | VuoOscIn | oi | ) |
Stops the OSC server from calling trigger functions when it receives a message.
This function may be called from any thread.
void VuoOscIn_enableTriggers | ( | VuoOscIn | oi, |
VuoOutputTrigger(receivedMessage, VuoOscMessage) | |||
) |
Sets up the OSC server to call the trigger functions when it receives a message.
This function may be called from any thread.
VuoOscIn VuoOscIn_make | ( | VuoInteger | port | ) |
Creates a reference-counted object to manage receiving messages from a OSC device.
If port
is nonzero, attempts to use the specified port. If zero, automatically chooses an unused port. If the port is successfully opened, advertises the server via Bonjour.
std::map<unsigned int, VuoOscInSocket *> VuoOscInPool |
Sockets, keyed by port.
dispatch_semaphore_t VuoOscInPool_semaphore = NULL |
Synchronizes access to VuoOscInPool
.