/libcore/ojluni/src/main/java/java/net/ |
H A D | InetAddressImpl.java | 67 int ttl) throws IOException; 66 isReachable(InetAddress addr, int timeout, NetworkInterface netif, int ttl) argument
|
H A D | Inet6AddressImpl.java | 142 public boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, int ttl) throws IOException { argument 180 return isReachable0(addr.getAddress(), scope, timeout, ifaddr, ttl, netif_scope); 219 private native boolean isReachable0(byte[] addr, int scope, int timeout, byte[] inf, int ttl, int if_scope) throws IOException; argument
|
H A D | MulticastSocket.java | 178 * send(packet,ttl). 199 * <p>The ttl is an <b>unsigned</b> 8-bit quantity, and so <B>must</B> be 200 * in the range <code> 0 <= ttl <= 0xFF </code>. 202 * @param ttl the time-to-live 206 * <b>int</b> instead of <b>byte</b> as the type for ttl. 210 public void setTTL(byte ttl) throws IOException { argument 213 getImpl().setTTL(ttl); 221 * <P> The ttl <B>must</B> be in the range {@code 0 <= ttl <= 226 * @param ttl 235 setTimeToLive(int ttl) argument 655 send(DatagramPacket p, byte ttl) argument [all...] |
H A D | DatagramSocketImpl.java | 142 * @param ttl a byte specifying the TTL value 150 protected abstract void setTTL(byte ttl) throws IOException; argument 166 * @param ttl an <tt>int</tt> specifying the time-to-live value 171 protected abstract void setTimeToLive(int ttl) throws IOException; argument
|
H A D | PlainDatagramSocketImpl.java | 53 protected native void setTimeToLive(int ttl) throws IOException; argument 57 protected native void setTTL(byte ttl) throws IOException; argument
|
H A D | AbstractPlainDatagramSocketImpl.java | 59 private int ttl = -1; field in class:AbstractPlainDatagramSocketImpl 155 * @param ttl the TTL to be set. 157 protected abstract void setTimeToLive(int ttl) throws IOException; argument 166 * @param ttl the TTL to be set. 168 protected abstract void setTTL(byte ttl) throws IOException; argument
|
H A D | InetAddress.java | 154 * <dt><b>networkaddress.cache.ttl</b></dt> 163 * <dt><b>networkaddress.cache.negative.ttl</b> (default: 10)</dt> 421 * The <code>network interface</code> and <code>ttl</code> parameters 424 * A negative value for the <code>ttl</code> will result in an 434 * @param ttl the maximum numbers of hops to try or 0 for the 438 * or <code>ttl</code> are negative. 443 public boolean isReachable(NetworkInterface netif, int ttl, argument 445 if (ttl < 0) 446 throw new IllegalArgumentException("ttl can't be negative"); 450 return impl.isReachable(this, timeout, netif, ttl); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | DatagramSocketImplTest.java | 136 protected void setTTL(byte ttl) throws IOException { argument 141 protected void setTimeToLive(int ttl) throws IOException { argument
|
/libcore/ojluni/src/main/native/ |
H A D | Inet4AddressImpl.c | 71 struct sockaddr_in* netif, jint ttl) { 90 * sets the ttl (max number of hops) 92 if (ttl > 0) { 93 setsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); 194 jint ttl) { 249 return ping4(env, fd, &him, timeout, netif, ttl); 266 if (ttl > 0) { 267 setsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); 70 ping4(JNIEnv *env, jint fd, struct sockaddr_in* him, jint timeout, struct sockaddr_in* netif, jint ttl) argument 190 Inet4AddressImpl_isReachable0(JNIEnv *env, jobject this, jbyteArray addrArray, jint timeout, jbyteArray ifArray, jint ttl) argument [all...] |
H A D | Inet6AddressImpl.c | 145 struct sockaddr_in6* netif, jint ttl) { 177 if (ttl > 0) { 178 setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)); 266 jint ttl, jint if_scope) { 291 ifArray, ttl); 331 return ping6(env, fd, &him6, timeout, netif, ttl); 346 if (ttl > 0) { 347 setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)); 144 ping6(JNIEnv *env, jint fd, struct sockaddr_in6* him, jint timeout, struct sockaddr_in6* netif, jint ttl) argument 261 Inet6AddressImpl_isReachable0(JNIEnv *env, jobject this, jbyteArray addrArray, jint scope, jint timeout, jbyteArray ifArray, jint ttl, jint if_scope) argument [all...] |
H A D | PlainDatagramSocketImpl.c | 177 pdsi_ttlID = (*env)->GetFieldID(env, cls, "ttl", "I"); 1023 * to 1 to be compatible with default ttl of 1 for IPv4 sockets. 1026 int ttl = 1; local 1027 setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (char *)&ttl, 1028 sizeof(ttl)); 1584 jbyte ttl) { 1585 jint ittl = ttl; 1595 static void setTTL(JNIEnv *env, int fd, jint ttl) { argument 1596 char ittl = (char)ttl; 1608 static void setHopLimit(JNIEnv *env, int fd, jint ttl) { argument 1583 PlainDatagramSocketImpl_setTTL(JNIEnv *env, jobject this, jbyte ttl) argument 1624 PlainDatagramSocketImpl_setTimeToLive(JNIEnv *env, jobject this, jint ttl) argument 1689 int ttl = 0; local 1702 u_char ttl = 0; local [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | SecurityManager.java | 163 public void checkMulticast(InetAddress maddr, byte ttl) { } argument
|