PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Versions 17 and later
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 17
Universal Windows 10 App This function is now available for Windows Phone applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
Versions 23 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 23
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Check the existence before the creation
IF SocketExist("MySocket") = False THEN
IF SocketCreate("MySocket", 8000) = False THEN
 Error("Creation error" + ErrorInfo(errMessage))
 END
ELSE
 SocketRead("MySocket", False)
END
Syntax
<Result> = SocketExist(<Socket name>)
<Result>: Boolean
  • True if the socket exists,
  • False otherwise.
<Socket name>: Character string (with quotes)
Name of socket to check.
For a WINDEV application, this name was defined:
WINDEV Caution: the socket name is case sensitive.
Remarks
Component : wd250com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment