Vuo  2.0.0
Public Member Functions | List of all members
VuoOscInSocket Class Reference

Description

Opens a reusable UDP socket, attaches the specified listener to it (on a separate thread), and starts it receiving messages.

Definition at line 267 of file VuoOsc.cc.

Public Member Functions

void listenForMessages (void)
 Runs the receive multiplexer until stopping becomes true and the multiplexer receives a AsynchronousBreak(). More...
 
 VuoOscInSocket (const IpEndpointName &localEndpoint, VuoOscInPacketListener *listener, char *name)
 Creates a socket on the specified endpoint. More...
 
void use (void)
 Increment this socket's retain count. More...
 
void disuse (void)
 Decrement this socket's retain count. More...
 
int useCount (void)
 Returns this socket's retain count. More...
 
VuoOscInPacketListenerlistener (void)
 Returns this socket's listener instance. More...
 

Constructor & Destructor Documentation

◆ VuoOscInSocket()

VuoOscInSocket::VuoOscInSocket ( const IpEndpointName &  localEndpoint,
VuoOscInPacketListener listener,
char *  name 
)
inline

Creates a socket on the specified endpoint.

Invokes the specified listener when a message is received.

Definition at line 331 of file VuoOsc.cc.

Member Function Documentation

◆ disuse()

void VuoOscInSocket::disuse ( void  )
inline

Decrement this socket's retain count.

Definition at line 369 of file VuoOsc.cc.

◆ listener()

VuoOscInPacketListener* VuoOscInSocket::listener ( void  )
inline

Returns this socket's listener instance.

Definition at line 385 of file VuoOsc.cc.

◆ listenForMessages()

void VuoOscInSocket::listenForMessages ( void  )
inline

Runs the receive multiplexer until stopping becomes true and the multiplexer receives a AsynchronousBreak().

Catches and logs exceptions, then resumes listening.

Definition at line 281 of file VuoOsc.cc.

◆ use()

void VuoOscInSocket::use ( void  )
inline

Increment this socket's retain count.

Definition at line 361 of file VuoOsc.cc.

◆ useCount()

int VuoOscInSocket::useCount ( void  )
inline

Returns this socket's retain count.

Definition at line 377 of file VuoOsc.cc.


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