[protobuf] Help to use protobuff .net remote code

2012-01-03 Thread chalapathi kurakula
Hi,
This is Chalpathi Reddy, I have a requirement to create a database
file in server machine from client machine.
After that I want to create tables, read, update , delete data from
the server machine when sending requests from client machine.

I have downloaded protobuf-remote-net-0.1.1. I am a little confusing
how  to use this software. Can you please explain me how to use this
software sample to my requirement.

Regards,
Chalapathi

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Google ProtoBuffer: Limit size of message(bytes)

2012-01-03 Thread Sergii Zagriichuk
Hi, 
Are there any options to limit size of input output messages in protobuffer 
? For example I have two messages like In and Outeach of these messages 
contains required byte array bytes and into this array I can write a lot of 
bytes, so, I want to limit size of this array for example to 1Mb How can I 
to do it? 

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/protobuf/-/jqQZjWR_se0J.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Undefined symbol: _ZNK6google8protobuf11MessageLite17SerializeToStringEPSs

2012-01-03 Thread GPB
What steps will reproduce the problem?

My aim is to use Google Proto buff on VxWorks for C++. I ran below
commands on cygwin in Windows7 machine.
*) ./configure --target=powerpc-wrs-vxworks --enable-static=no --
disable-shared --with-protoc=protoc --enable-Multithreading
*) make
*) This generated 3 .a files in protobuf-2.2.0\src\.libs. They are
libprotobuf.a, libprotobuf-lite.a and libprotoc.a

Now I wanted to use these .a files (lib files) in my software to
encode using GPB. So I copied these library files and I tried to build
using scons in my package.


What is the expected output? What do you see instead?
I expected the scons to build smoothly. But it came with below issues
and scons build failed.

*) Undefined symbol:
_ZNK6google8protobuf11MessageLite17SerializeToStringEPS
   I understand that this symbol is defined in
message_lite.cpp

What version of the product are you using? On what operating system?

2.2.0, installed over cygwin in Windows 7 and configured with
   /configure --target=powerpc-wrs-vxworks --enable-static=no --
disable-shared --with-protoc=protoc --enable-Multithreading

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] My client language is object-c and server language is php

2012-01-03 Thread uniy
My client language is object-c and server language is php,
object-c can parse to NSData,
php can parse to String,
I tried to covert NSData to NSString,
but coverted NSString is not equal to php string.
now, what should i do ?

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Re: Help to use protobuff .net remote code

2012-01-03 Thread Marc Gravell
If you mean protobuf-remote (which I'm not personally familiar with),
that is an RPC stack. It will help you send and receive messages. Any
database requirements you must handle separately. There is a manual
page linked for both C# and C++ - http://code.google.com/p/protobuf-remote/

Marc

On Dec 25 2011, 9:45 am, chalapathi kurakula chalapat...@gmail.com
wrote:
 Hi,
 This is Chalpathi Reddy, I have a requirement to create a database
 file in server machine from client machine.
 After that I want to create tables, read, update , delete data from
 the server machine when sending requests from client machine.

 I have downloaded protobuf-remote-net-0.1.1. I am a little confusing
 how  to use this software. Can you please explain me how to use this
 software sample to my requirement.

 Regards,
 Chalapathi

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] integration with google-glog

2012-01-03 Thread Hochhaus, Andrew
Hi,

Is it possible to configure protobuf to use google-glog (instead of
the LogMessage stub)? The alternatives that I can see are to use a
LogHandler to proxy logging through to glog or modify protobuf to
directly use glog [1].

If these are the only options, would the protobuf project consider
adding native glog support? (The patch wouldn't be very complicated
-- just a few ifdef HAVE_LIB_GLOGs).

Thanks,
-Andy

[1] 
http://cxwangyi.wordpress.com/2010/11/21/make-google-protobuf-use-google-glog/

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Re: Issue 120 in protobuf: Request to allow extending CodedInputStream and CodeOutputStream

2012-01-03 Thread protobuf


Comment #8 on issue 120 by ken...@google.com: Request to allow extending  
CodedInputStream and CodeOutputStream

http://code.google.com/p/protobuf/issues/detail?id=120

It's true that because Coded*Stream are public, we cannot contract these  
interfaces.  However, we *do* currently have the ability to *expand* these  
interfaces without breaking anyone, whereas with your proposed change this  
would be considerably more difficult.  Moreover, it is much easier for us  
to change the pattern of calls made by the protobuf implementation *to*  
these interfaces when there is only one implementation.  If there are  
multiple implementations, we don't know the affect our changes might have.


For an extreme example, imagine if in the future we discover that we can  
make encoding much faster by generating code which writes directly to  
CodedOutputStream's underlying byte array rather than calling its various  
methods.  So we add a new method like byte[] getBuffer(), and the encoder  
now calls only that.  Your custom implementation of CodedOutputStream would  
be thoroughly broken by this, probably requiring a complete re-design and  
rewrite of your entire project.  Since it's hard to tell how many people  
would be broken by such a change, we'd probably avoid making it in the  
first place, meaning everyone remains stuck with an inferior implementation.


So, you see, this kind of decision is not as clear-cut as it at first  
seems.  Adding any sort of abstraction to the library requires careful  
thought and design.  If you want to pursue this, you'll probably need to  
start a discussion thread on the mailing list where you and the protobuf  
maintainers (which no longer include me) can discuss the pros and cons in  
more detail.


Regarding benchmarks, I think there are some Java benchmarks in the SVN  
repo that you can run fairly easily.


--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] tcp get packet

2012-01-03 Thread calvin zhu
client send a proto packet to server by tcp, and how do the server
certain the packet size?
make a packet head?

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] tcp get packet

2012-01-03 Thread Henner Zeller
On Tue, Jan 3, 2012 at 18:37, calvin zhu calvinmy0...@gmail.com wrote:
 client send a proto packet to server by tcp, and how do the server
 certain the packet size?
 make a packet head?

If you want to make sure that you got the whole packet, you need to
add a header with the size, yes.
A simple way is to serialize the content to a string first, determine
the size and send that size at the
very beginning. This has as well the advantage, that you can send
multiple messages, each separated with
a size-header on the same tcp connection.
This is essentially described in
  http://code.google.com/apis/protocolbuffers/docs/techniques.html#streaming

Easiest is to just send a fixed 32 bit value. A bit more fancy would
be to use a varint (
http://code.google.com/apis/protocolbuffers/docs/encoding.html#varints
).

-h

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.