ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / 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
Closes a socket or a connection to a server socket.
Caution: The connection must be closed in order for the server socket to become aware of a message in locking read mode.
Reminder: A socket is a communication resource used by applications to communicate from one computer to another regardless of the type of network.
Example
IF SocketCreate("Server", 8000) = False THEN
Error("Creation error" + ErrorInfo(errMessage))
ELSE
...
SocketClose("Server")
END
Syntax
SocketClose(<Socket name>)
<Socket name>: Character string
Name of the socket that received the message.
In the WINDEV applications, this name was defined on the server:
In the WINDEV applications, this name was defined on the client by SocketConnect, SocketConnectSSL or SocketConnectInfrared.
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: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/08/2024

Send a report | Local help