NAP
Public Member Functions | List of all members
OSCReceivingSocket Class Reference

#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 ()
 

Description

Socket used for receiving OSC messages over the network

Inherits UdpSocket.

Constructor & Destructor Documentation

◆ OSCReceivingSocket() [1/2]

OSCReceivingSocket ( int  port,
bool  allowReuse 
)

This constructor allows the socket to receive OSC messages from any computer in the network

Parameters
portthe port to listen to for OSC messages
allowReuseenables or disables multiple listeners for a single port on the same network interface

◆ OSCReceivingSocket() [2/2]

OSCReceivingSocket ( const IpEndpointName &  localEndpoint,
bool  allowReuse 
)

Constructor

Parameters
localEndpointnetwork location to listen for messages
allowReuseenables or disables multiple listeners for a single port on the same network interface

◆ ~OSCReceivingSocket()

Unbinds the listener

Member Function Documentation

◆ run()

void run ( )

Start listening to messages until interrupted

◆ setListener()

void setListener ( osc::OscPacketListener *  listener)

Sets the listener that is used to forward the incoming packages to

Parameters
listenerthe listener to send the packages to

◆ stop()

void stop ( )

Signals the handler to exit the run state