ctx.pipeline().addFirst(decoder);
LOGGER.debug("RC4Decoder added to pipeline.");
}
// now send the server seed packet
P001_ServerSeed serverSeed = new P001_ServerSeed();
serverSeed.setEncryptedRC4Key(xoredRandomBytes);
buf = ctx.alloc().buffer(70).order(ByteOrder.LITTLE_ENDIAN);
serverSeed.serializeInto(buf);
ChannelFuture cf = ctx.writeAndFlush(buf);
// also remove this handler
ctx.pipeline().remove(this);