PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the applications to communicate between computers regardless of the network type.
Note: 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("Server", "Service") = False THEN
Error("Creation error" + ErrorInfo(errMessage))
END
Syntax
<Result> = SocketCreateInfrared(<Socket Name> , <Service Name>)
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. To find out the error details, use ErrorInfo.
<Socket Name>: Character string (with quotes)
Name that will be given to the socket. This name will be used by all socket functions.
<Service Name>: Character string (with quotes)
Name that will be given to the service. This name will be used in SocketConnectInfrared.
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

SocketCreateInfrared uses the IRDA protocol (Infrared Data Association).

Windows limit

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