why not a lua implementation of google's protocol buffers? is there already any better solution exist for lua?
why not a lua implementation of google's protocol buffers? is there already any better solution exist for lua? ...
why not a lua implementation of google's protocol buffers? is there already any better solution exist for lua? ...
I have two questions here: Question 1: -- can thrift provide an inner-class functionality? (see my example next) -- if it can, can thrift use such functionality easily? Here is the scribe interface (scribe/if/scribe.thrift). But its message field can only be string, which I believe not flexible enough. !/usr/local/bin/thrift --cpp...
What protocol definition do you recommend? I evaluated Google's protocol buffers, but it does not allow me to control the placement of fields in the packet being built. I assume the same is true for Thrift. My requirements are: 1. specify the location of fields in the packet 2. allow for bit fields 3. conditionals: a flag (bit field) = t...
In protocol buffers is there a way to have a message with collection of nested messages? For example a message Supervisor might have a collection of Employees along with the name and department of the supervisor. ...
Protocol buffer classes are marked final, presumably for efficiency; however, this makes them quite difficult to test with -- Mockito can't mock/spy on final classes. I've tried using PowerMockito with no success: I get a ClassFormatError when preparing the final class for the test. My solution up until now is to create mockable adapter...
The history of Encoding Schemes / multiple Operating Systems and Endian-nes have led to a mess in terms of encoding all forms of string data (--i.e., all alphabets); for this reason protocol buffers only deals with ASCII or UTF-8 in its string types, and I can't see any polymorphic overloads that accept the C++ wstring. The question then...
Does anyone know of a project to do a Google Protocol Buffers implementation in Delphi? ...
Suppose a application level protocol is implemented via UDP. Client timeout is required, thus server need to keep state of each client it talks to. Also suppose select is used. Is it always the best to implement multi-threading server? I figure a link-list will do the same, where server timeout time=Earliest Timeout of a client- Curre...
In the google protocol buffers encoding overview, they introduce something called "Zig Zag Encoding", this takes signed numbers, which have a small magnitude, and creates a series of unsigned numbers which have a small magnitude. For example Encoded => Plain 0 => 0 1 => -1 2 => 1 3 => -2 4 => 2 5 => -3 6 => 3 And so on. The encoding ...
I am looking for the protobuf-net equivalent to the C++ API Message::ByteSize to find out the serialized message length in bytes. ...
We are using google protobufs to pass data around on the wire. The server side of things is plugin-like so several of the modules handling the protobuf messages are DLLs. Some DLLs depend on others and use the others' messages to define their own messages. So, A.DLL has a.proto which generates a.pb.h/cc with a message class MsgA. Usi...
I'm trying to read / write multiple Protocol Buffers messages from files, in both C++ and Java. Google suggests writing length prefixes before the messages, but there's no way to do that by default (that I could see). However, the Java API in version 2.1.0 received a set of "Delimited" I/O functions which apparently do that job: parse...
Scenario: Windows Mobile C# Compact framework 2.0 or 3.5 Protobuf object I need to send an object to a http url (Post). Afterward I will wait for a response and receive a modified version of the object back. Any input on how to connect to a http stream and passing in a serialized object? ...
Hi All. I have serialized an object using Protobuf-net , in my .NET application, with relative ease. I also get the .proto file that protobuf-net generated, using GetProto() command. In the .NET generated .proto file, my GUID fields get a type of "bcl.guid". Now I wish to compile the .proto file in C++ so I can deserialize the data. ...
I'm writing a django app that communicates with remote service (on my VPN but not hosted locally). I can successfully communicate with the service via the django shell but when I try to call the exact same function, posting the information from a webform, the development server dies. I would have thought the shell and the development se...
We're thinking of using Protocol Buffers for binary logging because: It's how we're encoding our objects anyway It is relatively compact, fast to read / write etc. That said, it isn't obvious how we should go about it because the APIs tend to focus on creating whole objects, so wrapping a list of DataLogEntry as a repeated field in a...
Hi all (and Marc :) I am using ProtoBuf-Net in my .NET application to serialize the following : (in .proto format) message ProtoScreenBuffer { optional int32 MediaId = 1; optional bytes Data = 2; optional bool LastBuffer = 3; optional int64 StartTime = 4; optional int64 StopTime = 5; optional int32 Flags = 6; optional int32 BufferSubTy...
Hi, I am trying to send a proto over a socket, but i am getting segmentation error. Could someone please help and tell me what is wrong with this example? file.proto message data{ required string x1 = 1; required uint32 x2 = 2; required float x3 = 3; } xxx.cpp ... data data_snd, data_rec; //sending data ...
Hello guys, I'm working with protobuf and Linux. Where is it's compiler protoc. I've downloaded package from main site, compiled and installed it successfully but I can't find protoc to build my own format file. Where is it? UPD Here is folder where I build protobuf: aclocal.m4 depcomp Makefile.in autogen....
We currently use XStream for encoding our web service inputs/outputs in XML. However we are considering switching to a binary format with code generator for multiple languages (protobuf, Thrift, Hessian, etc) to make supporting new clients easier and less reliant on hand-coding (also to better support our message formats which include bi...