When pinging 8.8.8.8
from mono System.Net.NetworkInformation.Ping
reply time
is very higher than pinging from Lava.Lang.Process
ex. ping -c 10 8.8.8.8
PingReply Reply = await pingo.SendPingAsync(text_ip.Text, 4000);
Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
switch (Reply.Status)
{
case IPStatus.Success:
Toast.MakeText(Activity, Reply.Status.RoundTripTime().ToString(), ToastLength.Long).Show();
break;
if here is estimate ex. 100 ms
in this other example it shows lower ex. 60 ms
.
Process ipProcess = runtime.exec("ping -c 1 8.8.8.8");
int exitValue = ipProcess.waitFor();
ipProcess.destroy();
if(exitValue == 0)
{
// Success
}
else
{
// Failure
}
Why is this happening and can be solved or is problem with mono implementation ?