On Jan 24, 2010, at 23:44 , Adam Fisk wrote:
My question is about protocol buffers themselves. Put simply, is there any way to do bi-directional messaging on a single TCP connection running protocol buffers? Put another way, can both sides be a client and server on the same conection?
Sure, why not? Protocol buffers are just a protocol/library for encoding messages. There is no reason you can't use it to decode messages anyway you like. The library itself provides little to no support for this, but there is no reason you can't use a single TCP connection to send protocol buffer messages in both directions. In fact, if you want to write an RPC implementation, you'll have to do exactly that: send request messages one way, and reply messages the other.
Evan -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
