PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
Ping (Function)
 
Checks whether a network address can be reached by using the ICMP protocol (similar to the PING network utility).
Ejemplo
IF Ping("www.mysite.com") = True THEN
Info("The server is available. You can see the News")
ELSE
Info("Server temporarily unavailable")
END
Sintaxis
<Result> = Ping(<Address> [, <Maximum Duration>])
<Result>: Boolean
  • True if the sought address is "visible" on the network,
  • False otherwise.
<Address>: Character string (with quotes)
Address for which the network connection must be checked. This IP address can have the following format:
  • Address in XXX.XXX.XXX.XXX format (125.5.110.100 for example). This syntax is recommended.
  • DNS address of the computer (www.windev.com for instance).
  • Address returned by NetIPAddress
<Maximum Duration>: Optional integer or optional Duration
Maximum duration allowed to find the address (in milliseconds). This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • Versiones 23 y posteriores
    the direct indication of duration (1 s or 10 ms for example).
    Nueva funcionalidad versión 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
This duration is set to 1000 by default.
Observaciones
Ping is mainly a tool for network diagnostic. It does not guarantee that:
  • the computer will respond on a given port (to do so, use SocketConnect).
  • the computer is broken. Indeed, if the ping service is stopped on the computer, this computer will stop responding while it is still operating properly.
Clasificación Lógica de negocio / GUI : Lógica de negocio
Componente : wd250com.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario