#include <oscsender.h>
Public Member Functions | |
| OSCSender ()=default | |
| OSCSender (OSCService &service) | |
| virtual bool | start (utility::ErrorState &errorState) override |
| virtual void | stop () override |
| bool | send (const OSCEvent &oscEvent) |
| void | addEvent (OSCEventPtr oscEvent) |
| void | sendQueuedEvents () |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| 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 | |
| std::string | mIPAddress = "127.0.0.1" |
| Property: 'IpAddress' target machine ip address. More... | |
| int | mPort = 8000 |
| Property: 'Port' target machine port. More... | |
| int | mBufferScale = 2 |
| Property: 'Scale' scale factor applied to OSC message buffer. More... | |
| bool | mAllowFailure = false |
| Property: 'AllowFailure' if true, the sender will not fail to init if it fails to create the UDPTransmitSocket on init. More... | |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Sends a single OSC message or bundle of OSC messages. This device manages it's own connection and is constructed using a target ip address and port.
|
default |
| OSCSender | ( | OSCService & | service | ) |
| void addEvent | ( | OSCEventPtr | oscEvent | ) |
Adds an event to the queue This is more efficient than sending over an individual message Call send() to send over the queue as one message bundle
| oscEvent | the event to add to the queue, note that the sender takes ownership of the event |
| bool send | ( | const OSCEvent & | oscEvent | ) |
Sends an OSC message immediately without adding it to the queue Note that it's more efficient to add a message to the queue and send them as a bundle
| oscEvent | the event to send |
| void sendQueuedEvents | ( | ) |
Sends all the osc events in the queue as a bundle All events that were send are removed from the queue
|
overridevirtual |
Constructs the host end point and communication socket.
Reimplemented from Device.
|
overridevirtual |
Deletes the communication socket
Reimplemented from Device.
| bool mAllowFailure = false |
Property: 'AllowFailure' if true, the sender will not fail to init if it fails to create the UDPTransmitSocket on init.
| int mBufferScale = 2 |
Property: 'Scale' scale factor applied to OSC message buffer.
| std::string mIPAddress = "127.0.0.1" |
Property: 'IpAddress' target machine ip address.
| int mPort = 8000 |
Property: 'Port' target machine port.