method-based LocalServer interface
|Assignee:||R. Haschke||% Done:|
Registering methods to a LocalServer requires to instantiate a Callback class.
This is a rather clumsy use pattern, as normally one extends an existing server class with RSB connectivity.
If one wants to provide several methods this is not easily possible right now, because every method needs its own Callback class.
It would be much easier if one could simpy register a method (with boost::bind).
A Callback implementations to bind existing functions
Adds callback implementations to use existing function via boost
functions and boost bind as targets for local server calls.
- src/rsb/patterns/Localserver.h: add Callback implementations using
boost functions as targets.
- examples/server/server.cpp: show how to use new callbacks adapters
- examples/server/client.cpp: call new methods