Vuo  0.9.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Public Member Functions

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

Constructor & Destructor Documentation

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

Creates a socket on the specified endpoint.

Invokes the specified listener when a message is received.

Member Function Documentation

void VuoOscInSocket::disuse ( void  )
inline

Decrement this socket's retain count.

VuoOscInPacketListener* VuoOscInSocket::listener ( void  )
inline

Returns this socket's listener instance.

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.

void VuoOscInSocket::use ( void  )
inline

Increment this socket's retain count.

int VuoOscInSocket::useCount ( void  )
inline

Returns this socket's retain count.


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