AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Sockets
  • Recreating a socket
  • Creating a socket
  • IRDA protocol
  • Windows limit
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Creates a socket that uses 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 station used for the communication.. If the client computer uses a WINDEV application to connect to this socket, this application will have to use SocketConnectInfrared.
Ejemplo
IF SocketCreateInfrared("Server", "Service") = False THEN
	Error("Creation error" + ErrorInfo(errMessage))
END
Sintaxis
<Result> = SocketCreateInfrared(<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 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 SocketConnectInfrared.
Observaciones

Recreating a socket

If a socket is not closed properly by SocketClose (restarting the computer for example), recreating 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 (Infrared Data Association) protocol.

Windows limit

The maximum number of infrared sockets used simultaneously cannot exceed 80.
Componente: wd300com.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local