Re: weird behavior of Ping.pingNode()
Robert Muchsel <robert.muchsel-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
1) Try increasing the timeout
- use Ping.pingNode(addr, (byte) ttl, timeout, null).
[For IPv4, the timeout defaults to approximately 8ms.]
2) Call Ping.pingNode() more than once.
On Thu, 2004-03-18 at 00:01, Jing Qiu wrote:
> Sometimes I can ping a host using slush command, but
> can't get it using Ping.pingNode().
>
> in my program,
> Ping.pingNode(InetAddress.getByName("192.168.253.100"))
> would return false while I can successfull get respond
> from the host under slush command "ping
> 192.168.253.100".
>
> However, sometimes it works! Out of any reason I can
> probably think of, which got me really frustrated.
> Could anybody know or come up with an explanation?
>
> ______________________________________________________________________
> Post your free ad now! http://personals.yahoo.ca
> _______________________________________________
> TINI mailing list
> TINI-6tN4nzCoH/[email protected]
> To UNSUBSCRIBE, edit your profile, or see list archives:
> http://lists.dalsemi.com/mailman/listinfo/tini
--
Robert Muchsel - Dallas Semiconductor - http://www.maxim-ic.com/TINI/
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini