Lines Matching defs:timeout
85 private native boolean isReachable0(byte[] addr, int scope, int timeout, byte[] inf, int ttl, int if_scope) throws IOException;
175 public boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, int ttl) throws IOException {
206 return isReachable0(addr.getAddress(), scope, timeout, ifaddr, ttl, netif_scope);
209 if (icmpEcho(addr, timeout, sourceAddr, ttl)) {
214 return tcpEcho(addr, timeout, sourceAddr, ttl);
218 private boolean tcpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl)
229 IoBridge.connect(fd, addr, 7 /* Echo-protocol port */, timeout);
242 protected boolean icmpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl)
261 // ICMP is unreliable, try sending requests every second until timeout.
262 for (int to = timeout, seq = 0; to > 0; ++seq) {