AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Sockets
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Checks the existence of socket.
Remarks:
  • To check the connection validity, use SocketClientInfo to check the IP address of client socket and the port number.
  • The socket exists as long as the created socket was not closed by SocketClose.
  • If the communication is interrupted, SocketExist may still return a positive result even if the dialog is stopped.
Example
// Vérification de l'existence avant la création
IF SocketExist("MaSocket") = False THEN
	IF SocketCreate("MaSocket", 8000) = False THEN
		 Error("Erreur création " + ErrorInfo(errMessage))
	 END
ELSE
	 SocketRead("MaSocket", False)
END
Syntax
<Result> = SocketExist(<Socket name>)
<Result>: Boolean
  • True if the socket exists,
  • False otherwise.
<Socket name>: Character string
Name of socket to check.
For a WINDEV application, this name was defined:
WINDEV Caution: the socket name is case sensitive.
Remarks
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permission : INTERNET
This permission allows the applications to open the network sockets.
Component: wd290com.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 09/04/2024

Señalar un error o enviar una sugerencia | Ayuda local