Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/net/
DMulticastSocket.java216 public void setTTL(byte ttl) throws IOException { in setTTL() argument
219 getImpl().setTTL(ttl); in setTTL()
241 public void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
242 if (ttl < 0 || ttl > 255) { in setTimeToLive()
247 getImpl().setTimeToLive(ttl); in setTimeToLive()
662 public void send(DatagramPacket p, byte ttl) in send() argument
676 security.checkMulticast(p.getAddress(), ttl); in send() local
697 if (ttl != dttl) { in send()
699 getImpl().setTTL(ttl); in send()
705 if (ttl != dttl) { in send()
DInet6AddressImpl.java174 …public boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, int ttl) throws … in isReachable() argument
208 if (icmpEcho(addr, timeout, sourceAddr, ttl)) { in isReachable()
213 return tcpEcho(addr, timeout, sourceAddr, ttl); in isReachable()
217 private boolean tcpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl) in tcpEcho() argument
222 if (ttl > 0) { in tcpEcho()
223 IoBridge.setSocketOption(fd, IoBridge.JAVA_IP_TTL, ttl); in tcpEcho()
241 protected boolean icmpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl) in icmpEcho() argument
251 if (ttl > 0) { in icmpEcho()
252 IoBridge.setSocketOption(fd, IoBridge.JAVA_IP_TTL, ttl); in icmpEcho()
DDatagramSocketImpl.java170 protected abstract void setTTL(byte ttl) throws IOException; in setTTL() argument
191 protected abstract void setTimeToLive(int ttl) throws IOException; in setTimeToLive() argument
296 Integer ttl = getTimeToLive(); in getOption() local
297 return (T)ttl; in getOption()
DPlainDatagramSocketImpl.java157 protected void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
158 IoBridge.setSocketOption(fd, JAVA_IP_MULTICAST_TTL, ttl); in setTimeToLive()
165 protected void setTTL(byte ttl) throws IOException { in setTTL() argument
166 setTimeToLive((int) ttl & 0xff); in setTTL()
DInetAddressImpl.java77 int ttl) throws IOException; in isReachable() argument
DInetAddress.java518 public boolean isReachable(NetworkInterface netif, int ttl, in isReachable() argument
520 if (ttl < 0) in isReachable()
525 return impl.isReachable(this, timeout, netif, ttl); in isReachable()
DAbstractPlainDatagramSocketImpl.java174 protected abstract void setTimeToLive(int ttl) throws IOException; in setTimeToLive() argument
186 protected abstract void setTTL(byte ttl) throws IOException; in setTTL() argument
/libcore/ojluni/annotations/hiddenapi/java/net/
DInet6AddressImpl.java55 java.net.InetAddress addr, int timeout, java.net.NetworkInterface netif, int ttl) in isReachable() argument
61 java.net.InetAddress addr, int timeout, java.net.InetAddress sourceAddr, int ttl) in tcpEcho() argument
67 java.net.InetAddress addr, int timeout, java.net.InetAddress sourceAddr, int ttl) in icmpEcho() argument
DInetAddress.java92 public boolean isReachable(java.net.NetworkInterface netif, int ttl, int timeout) in isReachable() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java143 protected void setTTL(byte ttl) throws IOException { in setTTL() argument
148 protected void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
/libcore/ojluni/src/main/java/java/lang/
DSecurityManager.java173 public void checkMulticast(InetAddress maddr, byte ttl) { } in checkMulticast() argument
/libcore/ojluni/annotations/mmodule/java/net/
DInetAddress.annotated.java60 public boolean isReachable(java.net.NetworkInterface netif, int ttl, int timeout) throws java.io.IO… in isReachable() argument
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java391 protected void setTTL(byte ttl) throws IOException {}
396 protected void setTimeToLive(int ttl) throws IOException {}
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java1719 long ttl = control.getTimeToLive(cacheKey.getName(), in setExpirationTime() local
1721 if (ttl >= 0) { in setExpirationTime()
1726 cacheKey.expirationTime = now + ttl; in setExpirationTime()
1727 } else if (ttl >= Control.TTL_NO_EXPIRATION_CONTROL) { in setExpirationTime()
1728 cacheKey.expirationTime = ttl; in setExpirationTime()
1730 throw new IllegalArgumentException("Invalid Control: TTL=" + ttl); in setExpirationTime()
/libcore/luni/src/main/java/libcore/net/
Dmime.types755 text/turtle ttl