I'm confused. Shouldn't I just create a class called
DynamicServiceStub and have it inherit from "class LIBPROTOBUF_EXPORT
Service"?
And then implement a method like "Service* DynamicServiceStub::New
(ServiceDescriptor*, RpcChannel* ) " ?
I'm just doing this on the client side. If we did this on the server
side, we'd have to implement the Rpc's at runtime...and that doesn't
sound like a good idea.
If I get this working, I'd like to pass it back to you guys to perhaps
use it in the next release.
On Jun 30, 2:08 pm, Kenton Varda <
ken...@google.com> wrote:
> Oh, you want something like DynamicMessage except for services?
> DynamicServiceStub, perhaps? There is no such thing included in the
> library, but it would be really trivial to write. All you need to do is
> implement the Service interface as a wrapper around the RpcChannel
> interface. Have GetRequestPrototype() and GetResponsePrototype() return
> DynamicMessages, and have CallMethod() just call the RpcChannel's
> CallMethod().
> On Tue, Jun 30, 2009 at 2:03 PM,
rthompson.dtisoft....@gmail.com <