UDP Receive String

Receives a UTF-8 encoded string transmitted by the UDP transmission protocol over the network.

 

Input Arguments

 

0

Integer

Local Port

The port to use to listen for the packet.

 

1

 

Integer

 

Timeout (secs), 0 for none.

The timeout to use to wait for the packet. If none, the command will wait infinitely until a packet is received on the specified port.

 

Return Arguments

 

2

String

Received String

The string received in the packet.

3

String

Sender Host

The host (IP address) that sent the packet.

4

Integer

Sender Port

The port from which the packet was transmitted.

 

Returned Status

 

SUCCESS

The packet was sent successfully.

FAILURE

The destination host or port was invalid.

 

Remarks

None.