# icmp.ping 库模块帮助文档

[范例](https://www.aardio.com/zh-cn/docs/examples/Network/Manage/ping.html)

## icmp 成员列表 <a id="icmp" href="#icmp">&#x23;</a>

### icmp.ping <a id="icmp.ping" href="#icmp.ping">&#x23;</a>
PIN G工具

### icmp.ping() <a id="icmp.ping" href="#icmp.ping">&#x23;</a>
创建 PING 对象  

[返回对象:icmpPingObject](#icmpPingObject)

## icmpPingObject 成员列表 <a id="icmpPingObject" href="#icmpPingObject">&#x23;</a>

### icmpPingObject.close() <a id="icmpPingObject.close" href="#icmpPingObject.close">&#x23;</a>
关闭对象

### icmpPingObject.echoReply.data <a id="icmpPingObject.echoReply.data" href="#icmpPingObject.echoReply.data">&#x23;</a>
回复数据指针

### icmpPingObject.echoReply.dataSize <a id="icmpPingObject.echoReply.dataSize" href="#icmpPingObject.echoReply.dataSize">&#x23;</a>
回复数据大小

### icmpPingObject.echoReply.options.tos <a id="icmpPingObject.echoReply.options.tos" href="#icmpPingObject.echoReply.options.tos">&#x23;</a>
服务类型

### icmpPingObject.echoReply.options.ttl <a id="icmpPingObject.echoReply.options.ttl" href="#icmpPingObject.echoReply.options.ttl">&#x23;</a>
生存时间

### icmpPingObject.echoReply.roundTripTime <a id="icmpPingObject.echoReply.roundTripTime" href="#icmpPingObject.echoReply.roundTripTime">&#x23;</a>
往返时间 RTT ,单位毫秒

### icmpPingObject.echoReply.status <a id="icmpPingObject.echoReply.status" href="#icmpPingObject.echoReply.status">&#x23;</a>
状态码

### icmpPingObject.ip <a id="icmpPingObject.ip" href="#icmpPingObject.ip">&#x23;</a>
IP地址

### icmpPingObject.perform("目标IP地址") <a id="icmpPingObject.perform" href="#icmpPingObject.perform">&#x23;</a>
执行 PING

### icmpPingObject.requestData <a id="icmpPingObject.requestData" href="#icmpPingObject.requestData">&#x23;</a>
发送数据,默认为 32 字节数据

### icmpPingObject.timeout <a id="icmpPingObject.timeout" href="#icmpPingObject.timeout">&#x23;</a>
超时,默认为1000毫秒
