Hello,

I'm trying to implement a socket based RPC implementation with
protobuf but i'm stuck at creating Closure.

// Example that calls a method:
//   class Handler {
//    public:
//     ...
//
//     void FooDone(const FooResponse* response) {
//       ...
//     }
//
//     void CallFoo() {
//       ...
//       // When done, call FooDone() and pass it a pointer to the
response.
//       Closure* callback = NewCallback(this, &Handler::FooDone,
response);
//       // Make the call.
//       service->Foo(controller, request, response, callback);
//     }
//   };

I'm following this example but it gives an error complaining about:
"function does not take 3 arguments": NewCallback

Can you please help me on this?

Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to