You could look at one of the open source RPC implementations listed here:
http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#RPC_Implementations

Network communication is non-trivial.  Trying to demonstrate it with an
example would make for a very big example of which only a few lines of code
would have anything to do with protocol buffers.  Worse, the example would
probably only be a naive implementation not suitable for real-world use,
which could lead people down the wrong path.  A non-naive implementation
would be big enough to be its own project, which is far too much work to put
into an example.

We could provide an example that integrates protocol buffers with some
existing RPC implementation, but there are so many to choose from, and we
would not be demonstrating much that is not already demonstrated by that RPC
system's own documentation.  We'd just be taking their examples and adding
calls to protobuf parsing and serialization at the ends.  It doesn't seem
worthwhile.

And yes, many people use protocol buffers for disk storage rather than
networking.

On Tue, Jun 30, 2009 at 3:25 PM, JavaSrvcs <jvsr...@gmail.com> wrote:

>
> I can't imagine any other use than using it to send data over the
> network and use on the other end.
> In fact is this not what it was invented for (communication).
>
> On 30 jun, 16:07, Kenton Varda <ken...@google.com> wrote:
> > There are tons of resources on the internet and in books explaining how
> to
> > do network programming in Java.  Sorry, but this is really outside the
> scope
> > of protocol buffers.
> >
> >
> >
> > On Tue, Jun 30, 2009 at 2:46 PM, JavaSrvcs <jvsr...@gmail.com> wrote:
> >
> > > Is there a full compilable example (in Java) on how to do this ?
> > > What sort of service would I need to be running on a server to send
> > > data (and have the server receive and convert the flat byte array into
> > > a Java object).
> >
> > > On Jun 30, 2:32 pm, Kenton Varda <ken...@google.com> wrote:
> > > > Protocol Buffers provides a way to convert between flat byte arrays
> and
> > > > structured data.  This is obviously useful for network communication,
> but
> > > > protocol buffers does not provide any explicit networking support.
>  It's
> > > up
> > > > to you to take the byte array generated by protocol buffers and send
> it
> > > over
> > > > the network.
> >
> > > > On Tue, Jun 30, 2009 at 12:45 PM, JavaSrvcs <jvsr...@gmail.com>
> wrote:
> >
> > > > > I was led to believe that protocol buffers could be used for PC to
> PC
> > > > > communication, is there a way to do this, and if so, where can I
> find
> > > > > the examples?
> >
> > > > > The example I am looking at provided writes to a file.- Ocultar
> texto de la cita -
> >
> > - Mostrar texto de la cita -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to