The protobuf rpc style is like:

message LookupResult{
  optional int32 Id = 1;
}

message Name {
  optional string name = 1;
};

service DirLookup {
 rpc ByName (Name) returns (LookupResult);
}

 I need c/c++ style,like
 message MsgCount
{
   optional int32 nCount = 1;
}
service MyService {
  rpc Test (string szName,int32 nId,MsgCount msgCount) returns (int32 
nRet,string szSomeThing);
}

The difference is :
  1.  If the Request and Response parameter is based type(int32 ,string, 
bytes..), the parameter not need wrap to message
  2.  The Request and Response can have more than one parameter

 Can someone tell me how to implement it? Or already have a implement?
 Thanks.
     

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to