--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/_pokDEnIRfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
If I get it right, &output is a kind of outputstream, which could be a ByteArrayOutputStream in java.person.SerializeToOstream(&output);
With &intput being an inputstream, which could be a ByteArrayInputStream in java.person.ParseFromIstream(&input);
1. Firstly we need to communicate with some other modules which are using c++ and .net addition to java.
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Hi Tim,
In Wiki Vert.x-3.0-plan, mentioned "Expose simple wire protocol for event bus", will you adopt MQTT or some existing specifications?
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/_pokDEnIRfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I use Protobuf with a Vert.x 3.0 TCP server all the time. When a packet comes across the wire, you convert the Buffer into a byte array and pass that into the builder for the protobuf message that you are expecting.Keep in mind that you aren't guaranteed that a single Buffer received by the TCP server handler is the whole protobuf message. The protocol that I use gives me the message size in a header, so I know if I have the whole message already or if I have to cache the portion of the message that I have until I receive the entire message.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/_pokDEnIRfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/91ef264a-cfe5-416b-b17b-220b2197ac8a%40googlegroups.com.
I use Protobuf with a Vert.x 3.0 TCP server all the time. When a packet comes across the wire, you convert the Buffer into a byte array and pass that into the builder for the protobuf message that you are expecting.
Keep in mind that you aren't guaranteed that a single Buffer received by the TCP server handler is the whole protobuf message. The protocol that I use gives me the message size in a header, so I know if I have the whole message already or if I have to cache the portion of the message that I have until I receive the entire message.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/91ef264a-cfe5-416b-b17b-220b2197ac8a%40googlegroups.com.
On 16/07/15 14:40, Ian Andrews wrote:
I use Protobuf with a Vert.x 3.0 TCP server all the time. When a packet comes across the wire, you convert the Buffer into a byte array and pass that into the builder for the protobuf message that you are expecting.
Keep in mind that you aren't guaranteed that a single Buffer received by the TCP server handler is the whole protobuf message. The protocol that I use gives me the message size in a header, so I know if I have the whole message already or if I have to cache the portion of the message that I have until I receive the entire message.
RecordParser can do all that reassembly of message fragments for you.
I'd never heard of the RecordParser before. That is really cool!
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/_pokDEnIRfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/9d4d7ea2-ec4b-49c5-adcd-9fb6fccc621d%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CAHLoCa151Et7uQg2BRPNaXsHxJ8-LhCKpnLxOUw2_3BS9g7wdg%40mail.gmail.com.