iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OSCSender Class Reference

OSCSender interface, implement in order to send OSC messages. More...

#include <IPlugOSC.h>

Inheritance diagram for OSCSender:
[legend]

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...
 

Detailed Description

OSCSender interface, implement in order to send OSC messages.

Definition at line 32 of file IPlugOSC.h.

Constructor & Destructor Documentation

◆ OSCSender()

OSCSender::OSCSender ( const char *  ip = "127.0.0.1",
int  port = 8000,
OSCLogFunc  logFunc = nullptr 
)

Construct a new OSCSender.

Parameters
ipThe IP address to send messages to
portThe port number on which to listen for messages
logFuncstd::function to log connection details

Definition at line 5 of file IPlugOSC.cpp.

References SetDestination().

Member Function Documentation

◆ SendOSCMessage()

void OSCSender::SendOSCMessage ( OscMessageWrite msg)

Send an OSC message.

Parameters
msgThe message that should be sent

Definition at line 31 of file IPlugOSC.cpp.

◆ SetDestination()

void OSCSender::SetDestination ( const char *  ip,
int  port 
)

Set the destination ip and port.

Parameters
ipThe IP address to send messages to
portThe port number on which to listen for messages

Definition at line 12 of file IPlugOSC.cpp.

References OSCInterface::RemoveDevice().

Referenced by OSCSender().

◆ SetLogFunc()

void OSCSender::SetLogFunc ( OSCLogFunc  logFunc)
inline

Set a log function after construction.

Parameters
logFuncstd::function to log connection details

Definition at line 52 of file IPlugOSC.h.


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