SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
lowrappers::ServerThread::Listener Class Referenceabstract

A listener interface for listeners to be called by the ServerThread when incoming OSC messages are received. More...

#include <ServerThread.h>

Inheritance diagram for lowrappers::ServerThread::Listener:
Inheritance graph
[legend]

Public Member Functions

virtual ~Listener ()
 
virtual int callback (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg)=0
 The callback method that will be called from the ServerThread. More...
 

Detailed Description

A listener interface for listeners to be called by the ServerThread when incoming OSC messages are received.

Constructor & Destructor Documentation

virtual lowrappers::ServerThread::Listener::~Listener ( )
inlinevirtual

Member Function Documentation

virtual int lowrappers::ServerThread::Listener::callback ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
lo_message  msg 
)
pure virtual

The callback method that will be called from the ServerThread.

Parameters
pathThe OSC path of the incoming message that triggered the call.
typesThe Liblo-style types string indicating the types of the recieved parameters (e.g. "iii" for three int parameters).
argvThe parameters recieved within the message (whose types will match the types string.
argcThe length of the argv array.
msgThe full message as lo_message.
Returns
0 if the message has been handled and shall not be passed to other callback methods, non-zero if the server shall try passing the message to further matching callback methods.

Implemented in lowrappers::GenericServerThreadListener< T >.