Searched defs:ttl (Results 1 - 6 of 6) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DDatagramSocketImplTest.java136 protected void setTTL(byte ttl) throws IOException { argument
141 protected void setTimeToLive(int ttl) throws IOException { argument
/libcore/luni/src/main/java/java/net/
H A DDatagramSocketImpl.java211 * @param ttl
212 * the time-to-live option value. Valid values are 0 < ttl
217 protected abstract void setTimeToLive(int ttl) throws IOException; argument
223 * @param ttl
224 * the time-to-live option value. Valid values are 0 < ttl
232 protected abstract void setTTL(byte ttl) throws IOException; argument
H A DMulticastSocket.java241 * Sends the given {@code packet} on this socket, using the given {@code ttl}. This method is
248 public void send(DatagramPacket packet, byte ttl) throws IOException { argument
252 if (packAddr.isMulticastAddress() && (byte) currTTL != ttl) {
254 setTimeToLive(ttl & 0xff);
307 public void setTimeToLive(int ttl) throws IOException { argument
309 if (ttl < 0 || ttl > 255) {
310 throw new IllegalArgumentException("TimeToLive out of bounds: " + ttl);
312 impl.setTimeToLive(ttl);
323 public void setTTL(byte ttl) throw argument
[all...]
H A DPlainDatagramSocketImpl.java193 public void setTimeToLive(int ttl) throws IOException { argument
194 setOption(IoBridge.JAVA_IP_MULTICAST_TTL, Integer.valueOf(ttl));
198 public void setTTL(byte ttl) throws IOException { argument
199 setTimeToLive((int) ttl & 0xff); // Avoid sign extension.
H A DInetAddress.java696 * @param ttl
706 * if ttl or timeout is less than zero.
708 public boolean isReachable(NetworkInterface networkInterface, final int ttl, final int timeout) throws IOException { argument
709 if (ttl < 0 || timeout < 0) {
710 throw new IllegalArgumentException("ttl < 0 || timeout < 0");
/libcore/luni/src/main/java/java/lang/
H A DSecurityManager.java69 @Deprecated public void checkMulticast(InetAddress maddr, byte ttl) { } argument

Completed in 45 milliseconds