@Test(expected=IOException.class) public void testAbortOnInfiniteDomainName() throws IOException { byte[] packet = new ByteBuilder() .hex("0000 8400") .hex("0000") .hex("0001") .hex("0000") .hex("0000") .hex("04").ascii("TEST") .hex("c00c") .hex("0001 0001") .hex("0000000a 0004") .hex("c0 a8 01 64") .build(); decode(packet, packet.length); }
static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; } }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }  }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }  static void discover(String serviceType, Callback callback, int timeout); static Result resolve(String serviceName, int timeout); }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }  static void discover(String serviceType, Callback callback, int timeout); static Result resolve(String serviceName, int timeout);  }