A listener interface for listeners to be called by the ServerThread when incoming OSC messages are received.
More...
#include <ServerThread.h>
|
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...
|
|
A listener interface for listeners to be called by the ServerThread when incoming OSC messages are received.
virtual lowrappers::ServerThread::Listener::~Listener |
( |
| ) |
|
|
inlinevirtual |
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
-
path | The OSC path of the incoming message that triggered the call. |
types | The Liblo-style types string indicating the types of the recieved parameters (e.g. "iii" for three int parameters). |
argv | The parameters recieved within the message (whose types will match the types string. |
argc | The length of the argv array. |
msg | The 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 >.