Show/Hide hidden text
This chapter gives an overview of the events that are raised by a TCP Client and that can be used in the Event Listener.
Please read the chapters "UDP Server&Client" and "Event Listener" if you would like to know how to add and use both. The available UDP Client members that can be used in our scripting language are explained in the chapter "UDP Server&Client Members".
Example:
Label1.Text = Label1.Text = Data + " from IP: " + Address + " port " + Port
This event is raised whenever the connected UDP server sends a message.
The event returns three parameters to WD. The first is a string value with the name "Data" and holds the message. The second is also a string value with the name "Address" and holds the remote IP address. Lastly, "Port" is an integer value and holds the remote port which is of interest when replying to this message.
If you select this event and copy the example into the scripting field of the Event Listener, it will write a message like "SomeCustomText from IP: 2.0.0.2 port 55551" into the Label with ID 1 whenever the server sends one.
|