JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::OSCReceiver::Listener< CallbackType > Class Template Referenceabstract

A class for receiving OSC data from an OSCReceiver. More...

#include <juce_OSCReceiver.h>

Public Member Functions

virtual ~Listener ()=default
 Destructor. More...
 
virtual void oscBundleReceived (const OSCBundle &)
 Called when the OSCReceiver receives a new OSC bundle. More...
 
virtual void oscMessageReceived (const OSCMessage &message)=0
 Called when the OSCReceiver receives a new OSC message. More...
 

Detailed Description

template<typename CallbackType = MessageLoopCallback>
class juce::OSCReceiver::Listener< CallbackType >

A class for receiving OSC data from an OSCReceiver.

The template argument CallbackType determines how the callback will be called and has to be either MessageLoopCallback or RealtimeCallback. If not specified, MessageLoopCallback will be used by default.

See also
OSCReceiver::addListener, OSCReceiver::ListenerWithOSCAddress, OSCReceiver::MessageLoopCallback, OSCReceiver::RealtimeCallback

Constructor & Destructor Documentation

◆ ~Listener()

template<typename CallbackType = MessageLoopCallback>
virtual juce::OSCReceiver::Listener< CallbackType >::~Listener ( )
virtualdefault

Destructor.

Member Function Documentation

◆ oscBundleReceived()

template<typename CallbackType = MessageLoopCallback>
virtual void juce::OSCReceiver::Listener< CallbackType >::oscBundleReceived ( const OSCBundle )
inlinevirtual

Called when the OSCReceiver receives a new OSC bundle.

If you are not interested in OSC bundles, just ignore this method. The default implementation provided here will simply do nothing.

◆ oscMessageReceived()

template<typename CallbackType = MessageLoopCallback>
virtual void juce::OSCReceiver::Listener< CallbackType >::oscMessageReceived ( const OSCMessage message)
pure virtual

Called when the OSCReceiver receives a new OSC message.

You must implement this function.


The documentation for this class was generated from the following file: