Boost logo

Boost :

Subject: Re: [boost] Interest in Remote Procedure Call Library?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-02-10 09:38:42


Daniel Larimer wrote:

>
> // server
>
> SomeClass myclass;
> Server myserver( &myclass, "my.named.service" );
>
> // client
>
> RemoteInterface<SomeClass> ri( "my.named.service" );
> int result = ri.add(1,4); assert( result == 5 )
> ri.sub( 5, 1, &result ); assert( result == 4 );
> ri.inout(result); assert( result == 9 );
>

Hello Dan,

I'm interested. Is the assumption of classes and member functions needed?
What about mimicking the boost::function interface?

asio::io_service ios;
client m_client( ios, "rpc://server/" );

remote_function< void( int ) > m_func = m_client( "some.resource" );

Cheers,

Rutger


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk