serialize message to UDP socket

2009-09-18 Thread jayt0...@gmail.com
Hello all, I am having trouble figuring out how to serialize data over a socket utilizing UDP protocol. I am in C++ environment. When writing to the socket without protocol buffers, I use the standard sendto() socket call which allows me to specify the port and IP address of the intended

Re: serialize message to UDP socket

2009-09-18 Thread jayt0...@gmail.com
problem with using PB over sockets that remain in use). I am fully aware that there are methods to serialize directly from the object but those will not serve my ultimate aim of getting a length prefix ahead of the data bytes. Thanks Jay On Sep 18, 12:19 pm, jayt0...@gmail.com jayt0...@gmail.com

mutable

2009-09-23 Thread jayt0...@gmail.com
I am having trouble accessing many members of my .proto file. It seems that compound members are not accessible with set_() method calls. I saw in your example code the use of mutable_() calls. What does this apply to and is there documentation on it? could this be the solution to my problem?

Re: mutable

2009-09-23 Thread jayt0...@gmail.com
wow. I will try that. Yes, I am trying to set a complete 'foo' message. Is there documentation anywhere on this? I am coming up empty with web searches... On Sep 23, 8:25 am, Henner Zeller h.zel...@acm.org wrote: Hi, On Wed, Sep 23, 2009 at 08:13, jayt0...@gmail.com jayt0...@gmail.com

Re: mutable

2009-09-23 Thread jayt0...@gmail.com
h.zel...@acm.org wrote: Hi, On Wed, Sep 23, 2009 at 08:13, jayt0...@gmail.com jayt0...@gmail.com wrote: I am having trouble accessing many members of my .proto file.  It seems that compound members are not accessible with set_() method calls.  I saw in your example code the use of mutable_

Re: mutable

2009-09-23 Thread jayt0...@gmail.com
for foo1. Trying to find a pattern here... Thanks so much for your help. You are a life saver... Jay On Sep 23, 8:47 am, Henner Zeller h.zel...@acm.org wrote: On Wed, Sep 23, 2009 at 08:45, jayt0...@gmail.com jayt0...@gmail.com wrote: message foo1 {   optional int32 value1 = 1

Re: mutable

2009-09-23 Thread jayt0...@gmail.com
for foo1. Trying to find a pattern here... Thanks so much for your help. You are a life saver... Jay On Sep 23, 8:47 am, Henner Zeller h.zel...@acm.org wrote: On Wed, Sep 23, 2009 at 08:45, jayt0...@gmail.com jayt0...@gmail.com wrote: message foo1 {   optional int32 value1 = 1

Re: mutable

2009-09-23 Thread jayt0...@gmail.com
for foo1. Trying to find a pattern here... Thanks so much for your help. You are a life saver... Jay On Sep 23, 8:47 am, Henner Zeller h.zel...@acm.org wrote: On Wed, Sep 23, 2009 at 08:45, jayt0...@gmail.com jayt0...@gmail.com wrote: message foo1 {   optional int32 value1 = 1

Re: mutable

2009-09-23 Thread jayt0...@gmail.com
...@gmail.com jayt0...@gmail.com wrote: message foo1 {    optional int32 value1 = 1;    optional int32 value2 = 2; } message foo2 {    optional foo1 stuff1 = 1;    optional foo2 stuff2 = 2; } foo1 msg_foo1; foo2 msg_foo2; msg_foo2.set_stuff1(foo1); This is the concept of what I'm trying