AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones Net
  • Example: Sending a message from the client computer to the server
NetSendMessage (Example)
Example: Sending a message from the client computer to the server
The following example is used to send a Windows message from the client computer to the server and to retrieve this message on the server with Event.
// On the client computer
ConnectRPC is int
ConnectRPC = NetConnect("148.61.125.245", RPCServer, "GUEST", "")
...
// Client side: sending a Windows message to the server
NetSendMessage(ConnectRPC, "MyMessage")
// On the server
Event("MessageReceived", "*", "MyMessage")
// MessageReception procedure
PROCEDURE MessageReception()
Trace("Message received")
...
NetClientSendMessage(ServerID, "Received", 0, 0)
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/05/2022

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