用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:ping:ping

Ping 网络侦测应答

class in UnityEngine

Description 描述

Ping any given IP address (given in dot notation).

Ping指定的IP地址,不能是域名。

The ping operation is asynchronous and a ping object can be polled for status using Ping.isDone. When a response is received it is in Ping.time.

ping操作是异步的,可以使用Ping.isDone进行轮询其状态。收到的响应是Ping.time时间。

Variables 变量

ipThe IP target of the ping.
ping的目标地址。
isDoneHas the ping function completed?
ping函数是否完成?
timeThis property contains the ping time result after isDone returns true.
这个属性包含isDone返回true之后的应答时间。

Constructors 构造器

PingPerform a ping to the supplied target IP address.
执行ping目标IP地址。
script/unityengine/classes/ping/ping.txt · 最后更改: 2016/08/02 05:28 (外部编辑)