}
public void messageSent( IoSession session, Object message ) throws Exception
{
ByteBuffer buffer = ( ByteBuffer ) message;
buffer.rewind();
byte[] data = new byte[ buffer.remaining() ];
buffer.get( data );
StringBuffer sb = ( StringBuffer ) session.getAttribute( "sent" );
sb.append( new String( data, "ASCII" ) );
}