Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/net/
DMulticastSocket.java220 public void setTTL(byte ttl) throws IOException { in setTTL() argument
223 getImpl().setTTL(ttl); in setTTL()
245 public void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
246 if (ttl < 0 || ttl > 255) { in setTimeToLive()
251 getImpl().setTimeToLive(ttl); in setTimeToLive()
669 public void send(DatagramPacket p, byte ttl) in send() argument
683 security.checkMulticast(p.getAddress(), ttl); in send() local
704 if (ttl != dttl) { in send()
706 getImpl().setTTL(ttl); in send()
712 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
343 Integer ttl = getTimeToLive(); in getOption() local
344 return (T)ttl; in getOption()
DPlainDatagramSocketImpl.java158 protected void setTimeToLive(int ttl) throws IOException { in setTimeToLive() argument
159 IoBridge.setSocketOption(fd, JAVA_IP_MULTICAST_TTL, ttl); in setTimeToLive()
166 protected void setTTL(byte ttl) throws IOException { in setTTL() argument
167 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/ojluni/src/main/java/jdk/internal/misc/
DTerminatingThreadLocal.java69 for (TerminatingThreadLocal<?> ttl : REGISTRY.get()) { in threadTerminated()
70 ttl._threadTerminated(); in threadTerminated()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java177 protected void setTTL(byte ttl) throws IOException { in setTTL() argument
182 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/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.java2275 long ttl = control.getTimeToLive(cacheKey.getName(), in setExpirationTime() local
2277 if (ttl >= 0) { in setExpirationTime()
2282 cacheKey.expirationTime = now + ttl; in setExpirationTime()
2283 } else if (ttl >= Control.TTL_NO_EXPIRATION_CONTROL) { in setExpirationTime()
2284 cacheKey.expirationTime = ttl; in setExpirationTime()
2286 throw new IllegalArgumentException("Invalid Control: TTL=" + ttl); in setExpirationTime()
/libcore/ojluni/annotations/sdk/nullability/java/net/
DInetAddress.annotated.java57 public boolean isReachable(@libcore.util.Nullable java.net.NetworkInterface netif, int ttl, int tim… in isReachable() 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