Protobuf and Pipeline questions

VuuRWerK vuurwerk.christian at gmail.com
Thu Jul 1 06:06:13 EDT 2010


Hi list,

is there any way to set more then one protobufEncode/-Decoder?

Let me explain my problem: I have a command which will be send from the
client to the server. The server get the command and do some work according
to the command. Now the response ("answer") of the server could be:
"nothing", "simple" or "complex". "Nothing" means, the server get the
command and the clients doesn't wait for a response from the server, in turn
the server won't give a response. "Simple" means, the answer is maybe just a
status message, a return code or something simple. The message won't exceed
256 byte. And last but not least the "complex" response will be a bunch of
data (in future the data will be compressed) which could be up to several
MB.

My question is now: What can I do that the client can receive at least 2
different responses from the server? Both are "encoded" with Protobuf. And
in turn, what I need to do that the server can send at least 2 different
responses? Also both are "encoded" with Protobuf.
To set 2 different protobufEncoder/-Decoder is not possible.

Thanks in advance and best regards
Christian
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Protobuf-and-Pipeline-questions-tp5242786p5242786.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list