On 3/10/11 3:36 PM, Gabriel De Lima Nascimento wrote:
Hi,





I'm trying to make a sort of telnet proxy, I succeded in using the proxy
example from the mina examples, but I want to print the message the
client sends before sending it to the server. So far I have cast the
message from messageReceived(IoSession session, Object message) to an
IoBuffer, but I can't really read it and print it to System.out.





Any ideas how to do that?
Assuming that it's a IoBuffer, ((IoBuffer)message).array() will gives you a byte[].

Know, it's up to you to print it in a convenient way.


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to