An OSC message sender.
More...
An OSC message sender.
An OSCSender object can connect to a network port. It then can send OSC messages and bundles to a specified host over an UDP socket.
OSCSender::~OSCSender |
( |
| ) |
|
bool OSCSender::connect |
( |
const String & |
targetHostName, |
|
|
int |
targetPortNumber |
|
) |
| |
Connects to a datagram socket and prepares the socket for sending OSC packets to the specified target.
- Parameters
-
targetHostName | The remote host to which messages will be send. |
targetPortNumber | The remote UDP port number on which the host will receive the messages. |
- Returns
- true if the connection was successful; false otherwise.
Note: the operating system will choose which specific network adapter(s) to bind your socket to, and which local port to use for the sender.
- See also
- send, disconnect.
bool OSCSender::disconnect |
( |
| ) |
|
Disconnects from the currently used UDP port.
- Returns
- true if the disconnection was successful; false otherwise.
- See also
- connect.
bool OSCSender::send |
( |
const OSCMessage & |
message | ) |
|
Sends an OSC message to the target.
- Parameters
-
message | The OSC message to send. |
- Returns
- true if the operation was successful.
template<typename... Args>
Creates a new OSC message with the specified address pattern and list of arguments, and sends it to the target.
- Parameters
-
address | The OSC address pattern of the message (you can use a string literal here). |
args | The list of arguments for the message. |
bool OSCSender::send |
( |
const OSCBundle & |
bundle | ) |
|
Send an OSC bundle to the target.
- Parameters
-
bundle | The OSC bundle to send. |
- Returns
- true if the operation was successful.
The documentation for this class was generated from the following file: