Re: Detecting message type prior parsing a ByteBuffer containing the message

2009-07-23 Thread jasonh
On Jul 23, 12:54 am, Benedikt Hallinger wrote: > Hello (and sorry for bothering) and thank you for your clarifying. > > > The "type" is simply transmitted as a tag on the wire. The wire format > > of extensions is just like the wire format of a regular field - the > > difference is that the con

Re: Detecting message type prior parsing a ByteBuffer containing the message

2009-07-23 Thread Benedikt Hallinger
Hello (and sorry for bothering) and thank you for your clarifying. > The "type" is simply transmitted as a tag on the wire. The wire format > of extensions is just like the wire format of a regular field - the > difference is that the containing type (Packet) need not know about > the extension

Re: Detecting message type prior parsing a ByteBuffer containing the message

2009-07-22 Thread jasonh
On Jul 21, 11:00 pm, Benedikt Hallinger wrote: > Hello, > thank you very much for the ideas. Since i will have a unknowable ammount > of Message types, extensions would be the way to go. > Your were right with the assumption that i use Java. > > The "construct and send that message" stuff is not

Re: Detecting message type prior parsing a ByteBuffer containing the message

2009-07-21 Thread Benedikt Hallinger
Hello, thank you very much for the ideas. Since i will have a unknowable ammount of Message types, extensions would be the way to go. Your were right with the assumption that i use Java. The "construct and send that message" stuff is not the problem, the main problem is, how i should parse the i

Re: Detecting message type prior parsing a ByteBuffer containing the message

2009-07-21 Thread jasonh
he payload. > > On Jul 21, 6:12 am, Benedikt Hallinger > > > > wrote: > > Just to be more precise: the overall goal is, that the messagetype > > identification stuff should be managed entirely in the proto files. the > > user should only be concerned to write his handle

Re: Detecting message type prior parsing a ByteBuffer containing the message

2009-07-21 Thread jasonh
is, that the messagetype > identification stuff should be managed entirely in the proto files. the > user should only be concerned to write his handlers and the network > protocol definitions. > > > > Original Message ---- > Subject: Detecting message type prior

Re: Detecting message type prior parsing a ByteBuffer containing the message

2009-07-21 Thread Benedikt Hallinger
prior parsing a ByteBuffer containing the message Date: Tue, 21 Jul 2009 15:01:38 +0200 From: Benedikt Hallinger To: Hello, i currently try to build some small framework that eases the usage of protocol buffer for a project of me. The system allows for easier protocol handling and is composed

Detecting message type prior parsing a ByteBuffer containing the message

2009-07-21 Thread Benedikt Hallinger
Hello, i currently try to build some small framework that eases the usage of protocol buffer for a project of me. The system allows for easier protocol handling and is composed of this: - a PacketManager responsible for dispatching recieved messages (bytebuffers) to PacketHandlers - several Pack