ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Sockets
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 applications to communicate from one computer to another regardless of the type of network.
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. 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 connection opened on the server socket. This name will be used by all socket functions.
<Service name>: Character string
Name of the service specified in SocketCreateInfrared.
Remarks

IRDA protocol

SocketConnectInfrared uses the IRDA (Infrared Data Association) protocol. 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.
Component: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help