#include <oscreceivingsocket.h>
Public Member Functions | |
OSCReceivingSocket (int port, bool allowReuse) | |
OSCReceivingSocket (const IpEndpointName &localEndpoint, bool allowReuse) | |
~OSCReceivingSocket () | |
void | setListener (osc::OscPacketListener *listener) |
void | run () |
void | stop () |
Socket used for receiving OSC messages over the network
Inherits UdpSocket.
OSCReceivingSocket | ( | int | port, |
bool | allowReuse | ||
) |
This constructor allows the socket to receive OSC messages from any computer in the network
port | the port to listen to for OSC messages |
allowReuse | enables or disables multiple listeners for a single port on the same network interface |
OSCReceivingSocket | ( | const IpEndpointName & | localEndpoint, |
bool | allowReuse | ||
) |
Constructor
localEndpoint | network location to listen for messages |
allowReuse | enables or disables multiple listeners for a single port on the same network interface |
~OSCReceivingSocket | ( | ) |
Unbinds the listener
void run | ( | ) |
Start listening to messages until interrupted
void setListener | ( | osc::OscPacketListener * | listener | ) |
Sets the listener that is used to forward the incoming packages to
listener | the listener to send the packages to |
void stop | ( | ) |
Signals the handler to exit the run state