PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • IRDA protocol
  • Windows limit
  • Connection to a given socket
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
SocketConnectInfrared (Function)
In French: SocketConnecteInfraRouge
Connects a client computer to a given socket via the infrared port.
Reminder: A socket is a communication resource used by the applications to communicate between computers regardless of the network type.
Example
IF SocketConnectInfrared("customer", "service") = False THEN
Error("Connection error" + ErrorInfo(errMessage))
END
Syntax
<Result> = SocketConnectInfrared(<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 connection opened on the server socket. This name will be used by all socket functions.
<Service Name>: Character string (with quotes)
Name of the service specified in SocketCreateInfrared.
Remarks

IRDA protocol

SocketConnectInfrared uses the IRDA protocol (Infrared Data Association). Therefore, a WINDEV application can be connected to any device that uses this protocol (providing that you know the name of the service used).

Windows limit

The maximum number of infrared sockets used simultaneously cannot exceed 80.

Connection to a given socket

To connect a client computer to a given socket, use SocketConnect.
Components
WINDEVReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment