Google Protocol Buffers + ChunkedWriteHandler
Evil Ipos
evil.ipos at gmail.com
Tue Aug 23 08:43:16 EDT 2011
Hi,
Suppose i have protobuf message:
message DataResponse {
required int64 timestamp = 1;
optional bytes content = 2;
}
My current pipline factory is:
final ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("zlibDecoder", new ZlibDecoder());
pipeline.addLast("frameDecoder", new ProtobufVarint32FrameDecoder());
pipeline.addLast("protobufDecoder", new ProtobufDecoder(
DataViewerProtocol.DataRequest.getDefaultInstance()));
pipeline.addLast("zlibEncoder", new ZlibEncoder(9));
pipeline.addLast("frameEncoder",
new ProtobufVarint32LengthFieldPrepender());
pipeline.addLast("protobufEncoder", new ProtobufEncoder());
pipeline.addLast("requestHandler", new RequestHandler(listenerService));
*It's possible to send "content" field using ChunkedWriteHandler?*
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Google-Protocol-Buffers-ChunkedWriteHandler-tp6716029p6716029.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list