/** * Creates a new instance. * * @param maxPayloadSize the suggested max payload size in bytes * @param protocolFamily the {@link InternetProtocolFamily} to use. This should be the same as the one used to * send the query. */ public DefaultDnsOptEcsRecord(int maxPayloadSize, InternetProtocolFamily protocolFamily) { this(maxPayloadSize, 0, 0, 0, protocolFamily.localhost().getAddress()); }
/** * Creates a new instance. * * @param maxPayloadSize the suggested max payload size in bytes * @param protocolFamily the {@link InternetProtocolFamily} to use. This should be the same as the one used to * send the query. */ public DefaultDnsOptEcsRecord(int maxPayloadSize, InternetProtocolFamily protocolFamily) { this(maxPayloadSize, 0, 0, 0, protocolFamily.localhost().getAddress()); }
private InetAddress loopbackAddress() { return preferredAddressType().localhost(); }
private InetAddress loopbackAddress() { return preferredAddressType().localhost(); }
/** * Creates a new instance. * * @param maxPayloadSize the suggested max payload size in bytes * @param protocolFamily the {@link InternetProtocolFamily} to use. This should be the same as the one used to * send the query. */ public DefaultDnsOptEcsRecord(int maxPayloadSize, InternetProtocolFamily protocolFamily) { this(maxPayloadSize, 0, 0, 0, protocolFamily.localhost().getAddress()); }
/** * Creates a new instance. * * @param maxPayloadSize the suggested max payload size in bytes * @param protocolFamily the {@link InternetProtocolFamily} to use. This should be the same as the one used to * send the query. */ public DefaultDnsOptEcsRecord(int maxPayloadSize, InternetProtocolFamily protocolFamily) { this(maxPayloadSize, 0, 0, 0, protocolFamily.localhost().getAddress()); }
private InetAddress loopbackAddress() { return preferredAddressType().localhost(); }
private InetAddress loopbackAddress() { return preferredAddressType().localhost(); }