: SessionType.UDP);
session.setRemoteAddress(new InetSocketAddress(host, port));
// set packet encoder and decoder
session.setPacketEncoder(new BufferEncoder());
session.setPacketDecoder(new PacketDecoder() {
public Object decode(Session session, Packet packet)
throws Exception {
Buffer content = packet.getContent();
return content.getString(Charset.SYSTEM, content.remaining());