Andreas,
Programmer needs to implement serialization for custom data (as it is shown for struct ABC in https://github.com/amarmer/RemoteCall/blob/master/TestAPI.h )Then advantage of the framework: C++ remote programming model is the same as local.
It can be any transport which synchronously sends and receives data, it is not implemented by framework.Assuming transport is implemented as API like bool TransportSendReceive(std::vector<char>& vChar), then to use framework, needs to be created class like:
struct RemoteCallTransport: public RemoteCall::Transport{ bool SendReceive(std::vector<char>& vChar) override { return TransportSendReceive(vChar);
}} transport;
then client can call transport.CALL_REMOTE(Test)(parameters);
Regards,Alex
On Saturday, May 16, 2015 11:51 PM, Andreas Schäfer
Hello, I created a C++ framework RemoteCall which allows to use RPC the same way as local C++ calls are used. For declaration, implementation and call used macros: DECLARE_REMOTE, IMPLEMENT_REMOTE, CALL_REMOTE.Return and parameters (In and In/Out) can be any type except pointers. For instance: std::tuple
DECLARE_REMOTE(Test)(std::vectorstd::string& vInOut, const std::wstring& sIn). Implementation is on https://github.com/amarmer/RemoteCall Would it be useful to add this framework in Boost? Sincerely,Alex _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- ========================================================== Andreas Schäfer HPC and Grid Computing Department of Computer Science 3 Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany +49 9131 85-27910 PGP/GPG key via keyserver http://www.libgeodecomp.org ========================================================== (\___/) (+'.'+) (")_(") This is Bunny. Copy and paste Bunny into your signature to help him gain world domination! _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost