ChannelHandlerContext ctx, ChannelStateEvent e) {
// Send the packet when connected
if(sendingPacket == null) throw new RuntimeException("The packet has yet to be defined.");
if(!(sendingPacket instanceof UrpPacket)) throw new RuntimeException("The sending packet is not of type UrpPacket.");
UrpPacket packet = (UrpPacket) sendingPacket;
ChannelBuffer queryBuffer = ChannelBuffers.wrappedBuffer(packet.pack());
e.getChannel().write(queryBuffer);
}
@Override
public void messageReceived(