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