Le 3/27/14 3:02 PM, trongluc a écrit : > hi everyone! > I want to send multi data in a message. So ,How to write(read) multiple data > type (byte,int,string...) in same message? > Best regards!
Easy : just inject in an IoBuffer everything you want to write. You can do that using the IoBuffer methods (putInt, putChar, putString...). or you can write your own encoder which translate a Java object into a IoBuffer (see http://mina.apache.org/mina-project/userguide/ch9-codec-filter/ch9-codec-filter.html) -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
