Here is a recommended way in protobufs - http://code.google.com/apis/protocolbuffers/docs/techniques.html#self-description
Joshua On Jun 2, 2011, at 6:53 AM, Martin Sustrik wrote: > On 06/02/2011 11:37 AM, Seref Arikan wrote: >> I'm already using protocol buffers. The thing is, I can be passing >> around any protocol buffer serialization; so I need an envelope to >> tell the receiving party about the type of the message. >> I'm using multipart messages to pass two protocol buffer >> serializations; first one that contains data regarding the whole >> message, the second one, actual payload of the message. >> I'm happy to hear other approaches to handle this. > > Why not simply serialise both envelope and data using protocol buffers? > > Martin > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
