#include <oscreceiver.h>
Public Member Functions | |
OSCReceiver (OSCService &service) | |
virtual bool | start (utility::ErrorState &errorState) override |
virtual void | stop () override |
void | addEvent (OSCEventPtr event) |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
int | mPort = 7000 |
Property: 'Port' The port that is opened and used to receive osc messages. More... | |
bool | mDebugOutput = false |
Property: 'EnableDebugOutput' when enabled this objects prints all received osc messages. More... | |
bool | mAllowPortReuse = false |
Property: 'AllowPortReuse' enables / disables multiple listeners for a single port on the same network interface. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Object that receives and processes OSC events. The receiver manages it's own connection in a background thread. All received messages are consumed by the nap::OSCService and dispatched on the main thread to a valid nap::OSCInputComponent. Listen to the messageReceived signal of the OSC input component to receive OSC events in the running application.
OSCReceiver | ( | OSCService & | service | ) |
void addEvent | ( | OSCEventPtr | event | ) |
Adds an event to the queue
event | the event to add, note that this receiver will take ownership of the event |
|
overridevirtual |
Initializes the receiver and registers it with the OSCService This call will also start the background thread that received the messages
Reimplemented from Device.
|
overridevirtual |
Stop the OSCReceiver
Reimplemented from Device.
bool mAllowPortReuse = false |
Property: 'AllowPortReuse' enables / disables multiple listeners for a single port on the same network interface.
bool mDebugOutput = false |
Property: 'EnableDebugOutput' when enabled this objects prints all received osc messages.
int mPort = 7000 |
Property: 'Port' The port that is opened and used to receive osc messages.