|
|
|
|
SocketExist (Function) In french: SocketExiste 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.
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:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|