Re: [protobuf] protocol buffers and client-server communication

2011-01-23 Thread Evan Jones

On Jan 22, 2011, at 16:33 , Marco@worldcorp wrote:
I am guessing i will need 1 proto file for each type of message,  
correct?


Sounds like that is what you want to me. You may also end up needing  
some additional header message or wrapper message to be able to  
figure out what is the next message in the stream?. See:


http://code.google.com/apis/protocolbuffers/docs/techniques.html#union

the archives of this group also contain many discussions on this  
subject.


Evan Jones

--
http://evanjones.ca/

--
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.



[protobuf] protocol buffers and client-server communication

2011-01-22 Thread Marco@worldcorp
Hi all
 i am new to protocol buffer, and was wondering if i can use it for my
needs.
Basically, i am trying to implement a client-server communication
where i can have this type of messages:
- INCOMING  (from client to server)
 - String
 - a  Savings  Object
 - a Share object
- OUTCOMING (from server to client)
 - String
 - a List of Savings objects
 - a List of Share object

Basically, what i am trying to say is that i have N types of messages
from client to server and M types of messages from server to client,
and all this messages are differents from each other (having in total
N + M) types of messages.
I am guessing i will need 1 proto file for each type of message,
correct?

w/kindest regards
  marco

-- 
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.