I want to make a server , which can receive text and binary protocol.
For example, server will accept '<policy-file-request/> ' before other
communication.


chain.addLast("sandbox", new ProtocolCodecFilter(new TextLineCodecFactory()));
chain.addLast("socket", new ProtocolCodecFilter(new
SocketProtocolCodecFactory(true)));


messageReceived could receive a string, but it's not readable.

Anybody know the problem?

thank you.

Reply via email to