ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Net functions
  • 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)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help