Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/net/
DMulticastSocket.java248 public void send(DatagramPacket packet, byte ttl) throws IOException { in send() argument
252 if (packAddr.isMulticastAddress() && (byte) currTTL != ttl) { in send()
254 setTimeToLive(ttl & 0xff); in send()
307 public void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
309 if (ttl < 0 || ttl > 255) { in setTimeToLive()
310 throw new IllegalArgumentException("TimeToLive out of bounds: " + ttl); in setTimeToLive()
312 impl.setTimeToLive(ttl); in setTimeToLive()
323 public void setTTL(byte ttl) throws IOException { in setTTL() argument
325 impl.setTTL(ttl); in setTTL()
DDatagramSocketImpl.java217 protected abstract void setTimeToLive(int ttl) throws IOException; in setTimeToLive() argument
232 protected abstract void setTTL(byte ttl) throws IOException; in setTTL() argument
DPlainDatagramSocketImpl.java193 public void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
194 setOption(IoBridge.JAVA_IP_MULTICAST_TTL, Integer.valueOf(ttl)); in setTimeToLive()
198 public void setTTL(byte ttl) throws IOException { in setTTL() argument
199 setTimeToLive((int) ttl & 0xff); // Avoid sign extension. in setTTL()
DInetAddress.java708 …public boolean isReachable(NetworkInterface networkInterface, final int ttl, final int timeout) th… in isReachable() argument
709 if (ttl < 0 || timeout < 0) { in isReachable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java136 protected void setTTL(byte ttl) throws IOException { in setTTL() argument
141 protected void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
/libcore/luni/src/main/java/java/lang/
DSecurityManager.java69 @Deprecated public void checkMulticast(InetAddress maddr, byte ttl) { } in checkMulticast() argument