Version: 2017.3

Ping

class in UnityEngine

매뉴얼로 전환

설명

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

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.

Note: On Windows Store Apps a stream socket is used to mimic ping functionality, it will try to open connection to specified ip address with port 80. Also you need to enable InternetClient capability in Package.appxmanifest.

변수

ipThe IP target of the ping.
isDoneHas the ping function completed?
timeThis property contains the ping time result after isDone returns true.

생성자

PingPerform a ping to the supplied target IP address.