Descriptors Practical Example

2009-06-03 Thread rthompson.dtisoft....@gmail.com
Does anyone have a good practical use of descriptors? I'm trying to figure out why these would be useful. It seems to me that when you access the descriptor class, you're using the very class that defines the methods described by the descriptor.

Service Factory?

2009-06-29 Thread rthompson.dtisoft....@gmail.com
What can you do with a ServiceDescriptor? Is there a DynamicServiceFactory similar to the DynamicMessageFactory where you can instantiate a service when all you have is a ServiceDescriptor, or some other equivalent way of doing it? Thanks! --~--~-~--~~~---~--~~

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
not provide RPC. On Mon, Jun 29, 2009 at 10:15 AM, rthompson.dtisoft@gmail.com rthompson.dtisoft@gmail.com wrote: What can you do with a ServiceDescriptor?  Is there a DynamicServiceFactory similar to the DynamicMessageFactory where you can instantiate a service when all you have

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
More specifically the service_reflection class. On Jun 30, 9:26 am, rthompson.dtisoft@gmail.com rthompson.dtisoft@gmail.com wrote: Is there a C++ equivalent to http://code.google.com/apis/protocolbuffers/docs/reference/python/goo... ? which is used to create protocol service

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
. But this is not an RPC implementation.  You still have to add your own networking layer. On Tue, Jun 30, 2009 at 9:26 AM, rthompson.dtisoft@gmail.com rthompson.dtisoft@gmail.com wrote: Is there a C++ equivalent to http://code.google.com/apis/protocolbuffers/docs/reference/python/goo

Re: Service Factory?

2009-06-30 Thread rthompson.dtisoft....@gmail.com
() 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 rthompson.dtisoft@gmail.com wrote: Right, but I'm importing a .proto file at runtime using the Importer class

[protobuf] DynamicServiceFactory

2010-03-15 Thread rthompson.dtisoft....@gmail.com
DynamicServiceFactory-New(MyRpcOne,MyRpcTwo,...) This type of functionality doesn't appear to exist. Is there an alternate way to implement this type of functionality? -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group,

[protobuf] Mixing Message Factory and Compiled Messages

2010-05-26 Thread rthompson.dtisoft....@gmail.com
const google::protobuf::Descriptor* pDescriptorResponse = m_pFileDescriptor-FindMessageTypeByName( SomeMessage ); const google::protobuf::Message* pConstMessageResponse = m_pMessageFactory-GetPrototype( pDescriptorResponse ); SomeMessage* pSomeMessage

[protobuf] Possible Memory Leaks

2010-10-25 Thread rthompson.dtisoft....@gmail.com
I ran Valgrind on our application and found quite a few possibly lost bytes traces. Here is an example of one ==1473==at 0x40263A0: operator new(unsigned int) (vg_replace_malloc.c:214) ==1473==by 0x4370EB8: