|
iPlug2 - C++ Audio Plug-in Framework
|
OSCSender interface, implement in order to send OSC messages. More...
#include <IPlugOSC.h>
Public Member Functions | |
| OSCSender (const char *ip="127.0.0.1", int port=8000, OSCLogFunc logFunc=nullptr) | |
| Construct a new OSCSender. More... | |
| void | SetDestination (const char *ip, int port) |
| Set the destination ip and port. More... | |
| void | SendOSCMessage (OscMessageWrite &msg) |
| Send an OSC message. More... | |
| void | SetLogFunc (OSCLogFunc logFunc) |
| Set a log function after construction. More... | |
OSCSender interface, implement in order to send OSC messages.
Definition at line 32 of file IPlugOSC.h.
| OSCSender::OSCSender | ( | const char * | ip = "127.0.0.1", |
| int | port = 8000, |
||
| OSCLogFunc | logFunc = nullptr |
||
| ) |
Construct a new OSCSender.
| ip | The IP address to send messages to |
| port | The port number on which to listen for messages |
| logFunc | std::function to log connection details |
Definition at line 5 of file IPlugOSC.cpp.
References SetDestination().
| void OSCSender::SendOSCMessage | ( | OscMessageWrite & | msg | ) |
Send an OSC message.
| msg | The message that should be sent |
Definition at line 31 of file IPlugOSC.cpp.
| void OSCSender::SetDestination | ( | const char * | ip, |
| int | port | ||
| ) |
Set the destination ip and port.
| ip | The IP address to send messages to |
| port | The port number on which to listen for messages |
Definition at line 12 of file IPlugOSC.cpp.
References OSCInterface::RemoveDevice().
Referenced by OSCSender().
|
inline |
Set a log function after construction.
| logFunc | std::function to log connection details |
Definition at line 52 of file IPlugOSC.h.