ping - How does one send ICMP packets (with associated TTL values) in Java on Android? Is it possible without a 3rd-party library? If not, what do you use? -
It seems that it should be a simple way of finding, but I have no luck, I have a simple ping / tracerout / I want to write the DNS troubleshooting app, but with the set TTL, ICMP is not searching for documentation or examples explaining ECHO packets and interpreting their responses, I realize that Java likes to keep you away from "low-level" networking , Take The following ICMP is a major part of a basic networking. Clearly, I'm amazed at the obvious difficulty. Am I making it more complicated than it is, or is there no good way to go about it? If the latter, what "bad" way do you often work around this deficiency?
Am I making it more complicated than it is, or should I go about it Is not there any good way?
There is no pure-Java way to go about this. Java has never supported ICMP beyond its limited use in hrebbble ()
, and I can not even confirm that this use of ICMP is present in Android.
However, you can try to use it to link the NDK to the C library which implements the ICMP.
Comments
Post a Comment