Re: [protobuf] Reg: ProtocolBuf-net

2010-05-26 Thread Marc Gravell
With "full" .NET to .NET WCF, then switching the serialization layer to use
protobuf-net can (depending on a few factors) be as simple as a
configuration file change:
http://marcgravell.blogspot.com/2009/11/controlling-wcf-protobuf-net-at.html

*Unfortunately*,
this doesn't apply to Silverlight since Silverlight lacks that extension
point. There is no *silent* way of switching the serializer for Silverlight.
Instead the main mechanism for this would instead resolve around exposing
(on your WCF API) binary data - either byte[] or Stream. You would, of
course, then have to serialize/deserialize manually. Nowhere near as elegant
as you can achieve in full .NET, but it still works. WCF essentially then
becomes a plumbing layer, rather than representing the actual data API.

On the topic of data-contracts, you have a few options - if you have
existing data-contracts of the type:

[DataContract]
public class MyData {
[DataMember]
public int Foo {get;set;}

[DataMember]
public string Bar {get;set;}
}

then all that is required is to associate a unique number with each member
(unique within the type, if you see what I mean). This can be done using the
Order property:

[DataContract]
public class MyData {
[DataMember(Order=1)]
public int Foo {get;set;}

[DataMember(Order=2)]
public string Bar {get;set;}
}

or using protobuf-net's own attributes:

[ProtoContract]
public class MyData {
[ProtoMember(1)]
public int Foo {get;set;}

[ProtoMember(2)]
public string Bar {get;set;}
}

It is important that the client and server agree about the numbers.

Alternatively, if you *don't* have existing types you can also start from a
.proto file; the generator included with protobuf-net can emit suitable
types for you.

Re transport; if you are using WCF over HTTP, it is usually worthwhile
enable MTOM; but I can't recall whether this is supported under Silverlight.

Re serialization; if we assume you are throwing byte[] up and down the wire,
you should just need something like:

MyData obj = new MyData { Foo = 123, Bar = "abc" };
byte[] blob;
using(var ms = new MemoryStream()) {
Serializer.Serialize(ms,obj);
blob = ms.ToArray();
}

and then to deserialize:

MyData obj;
using(var ms = new MemoryStream(blob)) {
obj = Serializer.Deserialize(ms);
}

That should cover the main points. If there are more questions, please let
me know.

Marc Gravell
(protobuf-net)



On 27 May 2010 05:52, vikram  wrote:

> Hi,
>
> I am new to Protocol Buffer.
> I wanted to implement protocolbuffer for binary serialization for my
> WCF service.
>
> My requirement goes as given below:
>
> FrontEnd: SilverLight 3.0
> Middlelayer:  WCF Service (.NET 3.5)
>
> I would like to know what things need to be incoporate in my WCF
> service to implemement
> protobuf-net. (If possible provide an example it would be more
> helpful)
>
> Is there any addition things need to be handled while creating a proxy
> class for my WCF service or else i can use regular svcutil.exe for
> generate my proxy class.
> (If possible provide an example it would be more helpful)
>
> In frontEnd, how to i serialize/de-serialize object from my service
> call via proxy class.
> (If possible provide an example it would be more helpful)
>
> Thanxs in advance
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>


-- 
Regards,

Marc

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Reg: ProtocolBuf-net

2010-05-26 Thread vikram
Hi,

I am new to Protocol Buffer.
I wanted to implement protocolbuffer for binary serialization for my
WCF service.

My requirement goes as given below:

FrontEnd: SilverLight 3.0
Middlelayer:  WCF Service (.NET 3.5)

I would like to know what things need to be incoporate in my WCF
service to implemement
protobuf-net. (If possible provide an example it would be more
helpful)

Is there any addition things need to be handled while creating a proxy
class for my WCF service or else i can use regular svcutil.exe for
generate my proxy class.
(If possible provide an example it would be more helpful)

In frontEnd, how to i serialize/de-serialize object from my service
call via proxy class.
(If possible provide an example it would be more helpful)

Thanxs in advance

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] Re: Initial compiling with Visual Studio 2010

2010-05-26 Thread Kenton Varda
The linker errors look related to the mismatching runtime library versions.
 Unfortunately I don't remember how to fix this.  It's in the settings
somewhere.  Alternatively if you have a unix shell available (e.g. cygwin)
you can run the "sed" command from autogen.sh to fix up the project files
(obviously hasn't been tested on the latest gtest release, though).

I don't know what the rest of the stuff means.

Incidentally, another option here would be to just not compile the tests.  I
don't typically recommend this, but it seems like there is work to be done
to make the tests compile on VS2010.

On Wed, May 26, 2010 at 5:39 PM, Karth  wrote:

> Hmm... I tried loading in the latest version of googletest's code. I'm
> not familiar with how to update gtest's VS project files to use C
> runtime library versions matching those protobuf... could you let me
> know how to do this? Without any project file modifications, I get
> fewer compiler errors, but get many warnings. Here are the first few
> warnings that I get:
>
> ...
> 1>  message.cc
> 2>C:\Program Files\MSBuild\Microsoft.Cpp
> \v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012:
> TargetPath(C:\Users\Karthik\Documents\Visual Studio 2010\Projects
> \ProtocolBuffers\gtest\msvc\protobuf/Debug\gtest.lib) does not match
> the Library's OutputFile property value (C:\Users\Karthik\Documents
> \Visual Studio 2010\Projects\ProtocolBuffers\gtest\msvc\protobuf\Debug
> \gtestd.lib). This may cause your project to build incorrectly. To
> correct this, please make sure that $(OutDir), $(TargetName) and $
> (TargetExt) property values match the value specified in %
> (Lib.OutputFile).
> 2>C:\Program Files\MSBuild\Microsoft.Cpp
> \v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012:
> TargetName(gtest) does not match the Library's OutputFile property
> value (gtestd). This may cause your project to build incorrectly. To
> correct this, please make sure that $(OutDir), $(TargetName) and $
> (TargetExt) property values match the value specified in %
> (Lib.OutputFile).
> ...
> 1>  coded_stream.cc
> 1>  Generating Code...
> 1>hash.obj : warning LNK4221: This object file does not define any
> previously undefined public symbols, so it will not be used by any
> link operation that consumes this library
> 1>  libprotobuf.vcxproj -> C:\Users\Karthik\Documents\Visual Studio
> 2010\Projects\ProtocolBuffers\vsprojects\Debug\libprotobuf.lib
> 1>FinalizeBuildStatus:
> 1>  Deleting file "Debug\libprotobuf.unsuccessfulbuild".
> 1>  Touching "Debug\libprotobuf.lastbuildstate".
> ...
>
> In particular, libprotobuf.lib and libprotoc.lib produce many
> warnings, such as the following:
>
> 7>main.obj : warning LNK4099: PDB 'vc100.pdb' was not found with
> 'main.obj' or at 'C:\Users\Karthik\Documents\Visual Studio
> 2010\Projects\ProtocolBuffers\vsprojects\Debug\vc100.pdb'; linking
> object as if no debug info
> 7>libprotobuf.lib(coded_stream.obj) : warning LNK4099: PDB 'vc100.pdb'
> was not found with 'libprotobuf.lib(coded_stream.obj)' or at 'C:\Users
> \Karthik\Documents\Visual Studio 2010\Projects\ProtocolBuffers
> \vsprojects\Debug\vc100.pdb'; linking object as if no debug info
> 7>libprotobuf.lib(common.obj) : warning LNK4099: PDB 'vc100.pdb' was
> not found with 'libprotobuf.lib(common.obj)' or at 'C:\Users\Karthik
> \Documents\Visual Studio 2010\Projects\ProtocolBuffers\vsprojects\Debug
> \vc100.pdb'; linking object as if no debug info
> ...
> 7>libprotoc.lib(code_generator.obj) : warning LNK4099: PDB 'vc100.pdb'
> was not found with 'libprotoc.lib(code_generator.obj)' or at 'C:\Users
> \Karthik\Documents\Visual Studio 2010\Projects\ProtocolBuffers
> \vsprojects\Debug\vc100.pdb'; linking object as if no debug info
> 7>libprotoc.lib(command_line_interface.obj) : warning LNK4099: PDB
> 'vc100.pdb' was not found with
> 'libprotoc.lib(command_line_interface.obj)' or at 'C:\Users\Karthik
> \Documents\Visual Studio 2010\Projects\ProtocolBuffers\vsprojects\Debug
> \vc100.pdb'; linking object as if no debug info
> 7>libprotoc.lib(subprocess.obj) : warning LNK4099: PDB 'vc100.pdb' was
> not found with 'libprotoc.lib(subprocess.obj)' or at 'C:\Users\Karthik
> \Documents\Visual Studio 2010\Projects\ProtocolBuffers\vsprojects\Debug
> \vc100.pdb'; linking object as if no debug info
> ...
>
> I also get several linking errors, such as the following:
>
> 6>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
> std::_Container_base12::~_Container_base12(void)" (??
> 1_container_bas...@std@@q...@xz) already defined in
> gtestd.lib(gtest.obj)
> 6>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
> std::_Container_base12::_Container_base12(void)" (??
> 0_container_bas...@std@@q...@xz) already defined in
> gtestd.lib(gtest.obj)
> 6>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void
> __thiscall std::_Container_base12::_Orphan_all(void)" (?
> _orphan_...@_container_base12@std@@QAEXXZ) already defined in
> gtestd.lib(gtest.obj)
> ...
> 6>LIBCMTD.lib(_file.ob

[protobuf] Re: Initial compiling with Visual Studio 2010

2010-05-26 Thread Karth
Hmm... I tried loading in the latest version of googletest's code. I'm
not familiar with how to update gtest's VS project files to use C
runtime library versions matching those protobuf... could you let me
know how to do this? Without any project file modifications, I get
fewer compiler errors, but get many warnings. Here are the first few
warnings that I get:

...
1>  message.cc
2>C:\Program Files\MSBuild\Microsoft.Cpp
\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012:
TargetPath(C:\Users\Karthik\Documents\Visual Studio 2010\Projects
\ProtocolBuffers\gtest\msvc\protobuf/Debug\gtest.lib) does not match
the Library's OutputFile property value (C:\Users\Karthik\Documents
\Visual Studio 2010\Projects\ProtocolBuffers\gtest\msvc\protobuf\Debug
\gtestd.lib). This may cause your project to build incorrectly. To
correct this, please make sure that $(OutDir), $(TargetName) and $
(TargetExt) property values match the value specified in %
(Lib.OutputFile).
2>C:\Program Files\MSBuild\Microsoft.Cpp
\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012:
TargetName(gtest) does not match the Library's OutputFile property
value (gtestd). This may cause your project to build incorrectly. To
correct this, please make sure that $(OutDir), $(TargetName) and $
(TargetExt) property values match the value specified in %
(Lib.OutputFile).
...
1>  coded_stream.cc
1>  Generating Code...
1>hash.obj : warning LNK4221: This object file does not define any
previously undefined public symbols, so it will not be used by any
link operation that consumes this library
1>  libprotobuf.vcxproj -> C:\Users\Karthik\Documents\Visual Studio
2010\Projects\ProtocolBuffers\vsprojects\Debug\libprotobuf.lib
1>FinalizeBuildStatus:
1>  Deleting file "Debug\libprotobuf.unsuccessfulbuild".
1>  Touching "Debug\libprotobuf.lastbuildstate".
...

In particular, libprotobuf.lib and libprotoc.lib produce many
warnings, such as the following:

7>main.obj : warning LNK4099: PDB 'vc100.pdb' was not found with
'main.obj' or at 'C:\Users\Karthik\Documents\Visual Studio
2010\Projects\ProtocolBuffers\vsprojects\Debug\vc100.pdb'; linking
object as if no debug info
7>libprotobuf.lib(coded_stream.obj) : warning LNK4099: PDB 'vc100.pdb'
was not found with 'libprotobuf.lib(coded_stream.obj)' or at 'C:\Users
\Karthik\Documents\Visual Studio 2010\Projects\ProtocolBuffers
\vsprojects\Debug\vc100.pdb'; linking object as if no debug info
7>libprotobuf.lib(common.obj) : warning LNK4099: PDB 'vc100.pdb' was
not found with 'libprotobuf.lib(common.obj)' or at 'C:\Users\Karthik
\Documents\Visual Studio 2010\Projects\ProtocolBuffers\vsprojects\Debug
\vc100.pdb'; linking object as if no debug info
...
7>libprotoc.lib(code_generator.obj) : warning LNK4099: PDB 'vc100.pdb'
was not found with 'libprotoc.lib(code_generator.obj)' or at 'C:\Users
\Karthik\Documents\Visual Studio 2010\Projects\ProtocolBuffers
\vsprojects\Debug\vc100.pdb'; linking object as if no debug info
7>libprotoc.lib(command_line_interface.obj) : warning LNK4099: PDB
'vc100.pdb' was not found with
'libprotoc.lib(command_line_interface.obj)' or at 'C:\Users\Karthik
\Documents\Visual Studio 2010\Projects\ProtocolBuffers\vsprojects\Debug
\vc100.pdb'; linking object as if no debug info
7>libprotoc.lib(subprocess.obj) : warning LNK4099: PDB 'vc100.pdb' was
not found with 'libprotoc.lib(subprocess.obj)' or at 'C:\Users\Karthik
\Documents\Visual Studio 2010\Projects\ProtocolBuffers\vsprojects\Debug
\vc100.pdb'; linking object as if no debug info
...

I also get several linking errors, such as the following:

6>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
std::_Container_base12::~_Container_base12(void)" (??
1_container_bas...@std@@q...@xz) already defined in
gtestd.lib(gtest.obj)
6>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
std::_Container_base12::_Container_base12(void)" (??
0_container_bas...@std@@q...@xz) already defined in
gtestd.lib(gtest.obj)
6>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void
__thiscall std::_Container_base12::_Orphan_all(void)" (?
_orphan_...@_container_base12@std@@QAEXXZ) already defined in
gtestd.lib(gtest.obj)
...
6>LIBCMTD.lib(_file.obj) : error LNK2005: ___iob_func already defined
in MSVCRTD.lib(MSVCR100D.dll)
6>LIBCMTD.lib(setlocal.obj) : error LNK2005: __configthreadlocale
already defined in MSVCRTD.lib(MSVCR100D.dll)
6>LIBCMTD.lib(dbgheap.obj) : error LNK2005: __free_dbg already defined
in MSVCRTD.lib(MSVCR100D.dll)

There is also a syntax error:

9>  cpp_unittest.cc
9>c:\users\karthik\documents\visual studio 2010\projects
\protocolbuffers\src\google\protobuf\compiler\cpp
\cpp_unittest.cc(812): error C2059: syntax error : 'nullptr'

Thanks very much for your help.

Regards,

Karthik

On May 26, 7:36 pm, Kenton Varda  wrote:
> Looks like an error in gtest, which is a separate project.  If they have
> fixed it and released a new version before the next protobuf release, then
> we will pick up that fix.  In the meantime, you could try d

Re: [protobuf] Mixing Message Factory and Compiled Messages

2010-05-26 Thread Kenton Varda
Which MessageFactory?  There's DynamicMessageFactory and
MessageFactory::generated_factory().  If you want to get implementations of
compiled-in classes, you need to use the latter.

On Wed, May 26, 2010 at 3:38 PM, rthompson.dtisoft@gmail.com <
rthompson.dtisoft@gmail.com> wrote:

>const google::protobuf::Descriptor* pDescriptorResponse =
>m_pFileDescriptor->FindMessageTypeByName( "SomeMessage" );
>
>const google::protobuf::Message* pConstMessageResponse =
>m_pMessageFactory->GetPrototype( pDescriptorResponse );
>
>
>SomeMessage* pSomeMessage = pConstMessageResponse->New();
>
> where SomeMessage* is a google::protobuf::Message*
>
>
> pSomeMessage->set_my_field();   --- causes a crash because my_field is
> NULL   where 'set_my_field' is defined in some_service.pb.cc
>
> Does this mean that we can't mix compiled implementation's with
> message generated from a MessageFactory?
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Mixing Message Factory and Compiled Messages

2010-05-26 Thread rthompson.dtisoft....@gmail.com
const google::protobuf::Descriptor* pDescriptorResponse =
m_pFileDescriptor->FindMessageTypeByName( "SomeMessage" );

const google::protobuf::Message* pConstMessageResponse =
m_pMessageFactory->GetPrototype( pDescriptorResponse );


SomeMessage* pSomeMessage = pConstMessageResponse->New();

where SomeMessage* is a google::protobuf::Message*


pSomeMessage->set_my_field();   --- causes a crash because my_field is
NULL   where 'set_my_field' is defined in some_service.pb.cc

Does this mean that we can't mix compiled implementation's with
message generated from a MessageFactory?

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] Initial compiling with Visual Studio 2010

2010-05-26 Thread Kenton Varda
Looks like an error in gtest, which is a separate project.  If they have
fixed it and released a new version before the next protobuf release, then
we will pick up that fix.  In the meantime, you could try downloading the
fixed gtest release and dropping it into the "gtest" directory under the
protobuf source tree, but you may have to update gtest's VS project files to
use C runtime library versions matching the protobuf VS projects (last I
checked they didn't match; the protobuf release contains modified project
files for gtest).

On Mon, May 24, 2010 at 10:42 AM, Karth  wrote:

> Hello,
>
> When I try to compile the solution found in vsprojects under Visual
> Studio 2010, I get multiple errors, the first of which is:
>
> Visual Studio 2010\Projects\protobuf-2.3.0\gtest\include\gtest/
> internal/gtest-tuple.h(745): error C3855: 'std::tr1::tuple_element':
> template parameter '_Idx' is incompatible with the declaration
>
> Following errors include, but aren't limited to:
>
> 2>ClCompile:
> 2>  gtest-death-test.cc
> Visual Studio 2010\Projects\protobuf-2.3.0\gtest\include\gtest/
> internal/gtest-tuple.h(757): error C2039: 'type' : is not a member of
> 'std::tr1::tuple_element'
> Visual Studio 2010\Projects\protobuf-2.3.0\gtest\include\gtest/
> internal/gtest-tuple.h(742) : see declaration of
> 'std::tr1::tuple_element'
> Visual Studio 2010\Projects\protobuf-2.3.0\gtest\include\gtest/
> internal/gtest-tuple.h(757): error C2146: syntax error : missing ','
> before identifier 'type'
>
> While some files seen to be compiling without errors, other files
> don't compile (such as the one mentioned above). Are there any
> settings should have set within VS 2010 that I missed?
>
> Regards,
>
> Karthik
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] How to implement protobuf in symbian

2010-05-26 Thread Kenton Varda
You need to link against the protobuf runtime library, which you can compile
from the source code package.

On Tue, May 25, 2010 at 10:08 PM, anup  wrote:

> Hi
>
>  I want to implement protobuf in symbian for which I have followed the
> following steps but I am getting undefined symbol errors which might
> be due to some lib missing but I am not able t o find out the
> solution . Need guidance on it
>
> Steps:
>
> 1.Put the proto.exe and  the .protoc file in the same folder.
> 2. Then from the command prompt I run the proto.exe for that .protoc
> file and two files were generated
>
> (a) .h file
> (b) .cc file
>
> Now I want to use it in my symbian . Well when i included those files
> directly in my carbide ide, i got undefined symbol errors. Errors like
>
> 1.Undefined symbol:class google::protobuf::DescriptorPool const *
> google::protobuf::DescriptorPool::generated_pool(void)
>
> The google->protobuf folder and its relevant files I have included in
> the symbian library.
>
> But even though these errors
>
> Can anyone throw some light in it
>
> Regards
> Anupam
>
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] Protobuf - 'pure C' for embedded platforms ??

2010-05-26 Thread Michael Weller
I'm actually working on an ANSI C implementation currently. I know protobuf-c 
exists but there are a number of things that led me to start working on a 
separate implementation. I would be interested in hearing what kind of things 
you need.

I haven't had much experience with embedded systems. When you say you don't 
have a malloc, presumably you get memory from a fixed address range in flash? 
So you would want some way to define a custom allocator/deallocator to handle 
allocations in the generated code. I believe the current protobuf-c has a way 
to define custom allocators. Would the ability to override the default 
malloc/free be adequate or is something else required?

I guess you also need to define your own realloc/memcpy etc.?

And what about things like stdint.h/stdlib.h/limits.h for types like uint8_t 
and size_t and things like INT_MAX. Are these available?

Mike

On 26 May 2010, at 17:07, john mani wrote:

> Hi,
> 
> We are looking at using protobuf-c for microcontroller (TI MSP430)
> based systems. The memory, flash and CPU constraints are quite
> stringent, and the code itself has to be 'pure C' to cross compilable
> to this platform - i.e., no external library dependencies, no malloc,
> etc.
> 
> Has anyone done anything like this? Experiences welcome.
> 
> thanks
> -jmk
> 
> -- 
> 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 options, visit this group at 
> http://groups.google.com/group/protobuf?hl=en.
> 

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] Tcl: decoding a serialized ProtoBuf

2010-05-26 Thread Daniel Wright
The wire format is documented in
http://code.google.com/apis/protocolbuffers/docs/encoding.html

Daniel

On Wed, May 26, 2010 at 9:11 AM, nedbrek  wrote:

> Hello all,
>   I am interested in decoding a ProtoBuf I read off the network
> ("080010001800220100") in Tcl.  Full PB support for Tcl would be nice
> to have, but in the near term, I just want to know what was in the
> message.
>
>   What documentation should I read for this?
>
> Thanks,
> Ned
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] How to implement protobuf in symbian

2010-05-26 Thread anup
Hi

 I want to implement protobuf in symbian for which I have followed the
following steps but I am getting undefined symbol errors which might
be due to some lib missing but I am not able t o find out the
solution . Need guidance on it

Steps:

1.Put the proto.exe and  the .protoc file in the same folder.
2. Then from the command prompt I run the proto.exe for that .protoc
file and two files were generated

(a) .h file
(b) .cc file

Now I want to use it in my symbian . Well when i included those files
directly in my carbide ide, i got undefined symbol errors. Errors like

1.Undefined symbol:class google::protobuf::DescriptorPool const *
google::protobuf::DescriptorPool::generated_pool(void)

The google->protobuf folder and its relevant files I have included in
the symbian library.

But even though these errors

Can anyone throw some light in it

Regards
Anupam


-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Tcl: decoding a serialized ProtoBuf

2010-05-26 Thread nedbrek
Hello all,
   I am interested in decoding a ProtoBuf I read off the network
("080010001800220100") in Tcl.  Full PB support for Tcl would be nice
to have, but in the near term, I just want to know what was in the
message.

   What documentation should I read for this?

Thanks,
Ned

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Protobuf - 'pure C' for embedded platforms ??

2010-05-26 Thread john mani
Hi,

We are looking at using protobuf-c for microcontroller (TI MSP430)
based systems. The memory, flash and CPU constraints are quite
stringent, and the code itself has to be 'pure C' to cross compilable
to this platform - i.e., no external library dependencies, no malloc,
etc.

Has anyone done anything like this? Experiences welcome.

thanks
-jmk

-- 
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 options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.