ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Sockets
  • IRDA protocol
  • Windows limit
  • Connection to a given socket
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 machine 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 more details on 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: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/16/2025

Send a report | Local help