IPWorks 2020 JavaScript Edition

Questions / Feedback?

Send Method

Send data to the remote host.

Syntax

async udpport.send(text : Uint8Array): Promise<void>

Remarks

Calling this method is equivalent to setting the DataToSend property to Text.

Example (Send Data)


UDPPortControl.LocalPort = 8765 
UDPPortControl.RemotePort = 8765 
UDPPortControl.RemoteHost = "HostNameOrIPAddress"
UDPPortControl.Active = True
UDPPortControl.Send("Hello!")

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 JavaScript Edition - Version 20.0 [Build 8292]