|
|
|
|
|
SocketExist (Function) In french: SocketExiste Checks if a socket already exists. Remarks: - To check the validity of the connection, use SocketClientInfo to check the IP address of the client socket and the port number.
- The socket exists if it has not yet been closed with SocketClose.
- If the communication is interrupted, SocketExist may still return a positive result even if the dialog is stopped.
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 the socket to be checked. For a WINDEV application, this name is defined:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|