A generic functor class for the ServerThread::Listener interface.
More...
#include <GenericServerThreadListener.h>
|
typedef int(T::* | fpType )(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) |
| The type of function pointer that can be passed to the constructor. More...
|
|
template<class T>
class lowrappers::GenericServerThreadListener< T >
A generic functor class for the ServerThread::Listener interface.
- See Also
- lowrappers::ListenerMaker for a convenient way to use it.
The type of function pointer that can be passed to the constructor.
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.
Implements lowrappers::ServerThread::Listener.