On 9/8/06, wolverine my <[EMAIL PROTECTED]> wrote:
Hi! If I understood correctly we should always use DemuxingProtocolCodecFactory since most of the socket connections are TCP/IP, this include HTTP server, Chat server and etc. May I know in what scenario that we will choose other codec over the DemuxingProtocolCodecFactory? I think it would be very helpful if we can add some guidelines into the API description.
In case of text protocol, you could use TextLineProtocolCodecFactory. Most binary protocols will be fine with DemuxingProtocolCodecFactory, but if your protocol doesn't fit to your needs, then you can use CumulativeProtocolDecoder. Actually DemuxingProtocolCodecFactory is using CumulativeProtocolDecoder internally. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
