PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 custom 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