PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Re-creating a socket
  • Creating a socket
  • IRDA protocol
  • Windows limit
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
SocketCreateInfrared (Function)
In french: SocketCréeInfraRouge
Creates a socket that is using the infrared port. A socket is a communication resource used by applications to communicate from one computer to another regardless of the type of network.
Remark: This function must be called on the server used for the communication. If the client computer is using a WINDEV application to connect to this socket, this application will have to use SocketConnectInfrared.
Example
IF SocketCreateInfrared("Serveur", "Service") = False THEN
Error("Erreur création " + ErrorInfo(errMessage))
END
Syntax
<Result> = SocketCreateInfrared(<Socket name> , <Service name>)
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. If an error occurs, you can get the details of the error with ErrorInfo.
<Socket name>: Character string
Name that will be given to the socket. This name will be used by all socket functions.
<Service name>: Character string
Name that will be given to the service. This name will be used in the SocketConnectInfrared function.
Remarks

Re-creating a socket

If a socket is not closed properly by SocketClose (restarting the computer for example), re-creating the socket may take quite a long time. Indeed, you will have to wait until the socket is freed by the system.

Creating a socket

To create a socket on a server, use SocketCreate.

IRDA protocol

The SocketCreateInfrared function uses the IRDA (infrared Data Association) protocol.

Windows limit

The maximum number of infrared sockets used simultaneously cannot exceed 80.
Component: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment