Nigel Pickard wrote:
> Here's my sample code. In this code, everything works for me -however
> when I change the GPBClient to use Data IO streams (just comment out
> the Object IO references and uncomment the Data IO references in
> GPBClient), that's when I get the
> "com.google.protobuf.InvalidP
On Dec 7, 2009, at 0:02 , lexer wrote:
> Adam, Could you please show simple example how to use tag number for
> dispatch purpose.
I believe he was referring to this sort of thing:
http://code.google.com/apis/protocolbuffers/docs/techniques.html#union
Hope this helps,
Evan
--
Evan Jones
http:/
Oliver:
thanks for the reply. I'm not going to use Object IO streams, rather
I used it as an example of how the IO stream type seems to make a
difference at each end. Further, I now realize that once I use an IO
stream type, I must use the same type of stream at each ends of a Java
app I was
Ah, then I guess you are (well, would have been) interested. ;) Are
you allowed to forward that header you referenced to me? I'm curious
how the implementations overlap. I'll let you know if ours has any
value to add.
On Dec 4, 6:13 pm, Kenton Varda wrote:
> Ooops! I mixed up my mailing list
> Anyway, for anyone else wanting to use ByteArrayStream in Java for
> writing a Google , here is some code I've used:
>
> ServerSocket serverSocket = new ServerSocket(2004, 10);
> Socket socket = serverSocket.accept();
> OutputStream outputStream = socket.getOutputStream();
> outputStream.flush();
>> Adam, Could you please show simple example how to use tag number for
>> dispatch purpose.
>
> I believe he was referring to this sort of thing:
>
> http://code.google.com/apis/protocolbuffers/docs/techniques.html#union
Yes, exactly. In code, if you're using the enum-based technique:
switch (m
Thank you guys. It was helpful.
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+unsubscr...@googlegroups.com.
For more op
Here's an example from some code I wrote this weekend:
http://code.google.com/p/pbcap/source/browse/pbcap.proto -- Pay attention to
the "Stream" type.
http://code.google.com/p/pbcap/source/browse/Connection.java -- See
readOneMessage() and writeMessage().
The idea here is that the "Stream" messa
We are currently using protobuf on our project and it is great, but
there are a few things we are needing to do manually which seem like
they could be easily code generated and supported natively by the
protobuf objects. Any chance of the following features being added
in? (Or maybe they're alrea
On Mon, Dec 7, 2009 at 10:57 AM, Tim wrote:
> We are currently using protobuf on our project and it is great, but
> there are a few things we are needing to do manually which seem like
> they could be easily code generated and supported natively by the
> protobuf objects. Any chance of the follo
10 matches
Mail list logo