| 构造器和说明 |
|---|
Ping(int count,
int size,
String target)
To specify the IP or domain name to Ping test and return the IP, packet loss,
delay parameter to specify the IP or domain name such as Ping test and return the IP,
packet loss, delay and other parameters
|
Ping(int count,
int size,
String target,
boolean isAnalysisIp)
To specify the IP or domain name to Ping test and return the IP, packet loss,
delay parameter to specify the IP or domain name such as Ping test and return the IP,
packet loss, delay and other parameters
|
Ping(String target)
To specify the IP or domain name to Ping test and return the IP, packet loss,
delay parameter to specify the IP or domain name such as Ping test and return the IP,
packet loss, delay and other parameters
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancel()
Cancel do
|
float |
getDelay()
Get delay time
|
String |
getIp()
Get ping return ip
|
float |
getLossRate()
Get loss rate
|
float |
getTotalTime()
Use total time
|
void |
start()
*********************************************************************************************
Public method
*********************************************************************************************
|
String |
toString() |
public Ping(String target)
target - The targetpublic Ping(int count,
int size,
String target)
count - Packetssize - Packet sizetarget - The targetpublic Ping(int count,
int size,
String target,
boolean isAnalysisIp)
count - Packetssize - Packet sizetarget - The targetisAnalysisIp - Whether parsing IPpublic void start()
public String getIp()
if this is false renturn nullpublic float getLossRate()
public float getDelay()
public float getTotalTime()