ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Sockets
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Closes a socket or a connection to a server socket.
Warning The connection must be closed for the server socket to become aware of a message in blocking read mode.
Reminder A socket is a communication resource used by applications to communicate from one machine to another, regardless of the type of network.
Example
IF SocketCreate("Serveur", 8000) = False THEN
	Error("Erreur création " + ErrorInfo(errMessage))
ELSE
	...
	SocketClose("Serveur")
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
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/02/2025

Send a report | Local help