Hello everyone,
 
I am new to netty.

I have multiple layers of nested protocols, my idea is to use the first 
decoder for the first layer, the second decoder for the second layer, and 
the third decoder for the third layer.

The content of the protocol is as follows:
pid   baseCommonProp1   baseCommonProp2   baseCommonProp3   contentLength 
content (multiple types of instances, such as multiple drinks, cola, 
sprite, lemon tea)


But I have the following problem:
1. How to pass the partial objects assembled by the first layer of parsing 
to the next layer of decoder. I tried to use the decoder's construction 
method to solve the parameter transfer, but found that the object would not 
be collected by the garbage collector.
2. Suppose I pass the object to the next decoder through 
out.add(protocolObject), how to pass the remaining ByteBuf to the next 
decoder?

Are there any similar examples that I can refer to?


-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/471b1f6c-fd97-4f6f-bc43-276b1edb9561n%40googlegroups.com.

Reply via email to