UdpInput¶
in Lib.io.udp
Receives data from the network using the UDP (User Datagram Protocol).
This operator listens for UDP packets on a specified port, allowing communication with other applications or devices that send UDP data. UDP is a connectionless protocol, meaning data is sent without establishing a persistent connection, which is fast but less reliable than TCP.
Tips:
- Ensure the Port and LocalIpAddress match the sender's destination settings.
- WasTrigger becomes true for one frame whenever a new message is received, which can be used to trigger other actions.
- Unlike TCP, UDP does not guarantee message delivery or order.
AKA: udp, network, socket, datagram
Input Parameters¶
| Name (Relevancy & Type) | Description |
|---|---|
| Listen (Boolean) | Enables or disables listening for UDP packets. |
| ListLength (Int32) | The maximum number of received lines to store in the ReceivedLines output list. |
| LocalIpAddress (String) | The IP address of the network interface to listen on. A dropdown shows available addresses. Use '0.0.0.0' to listen on all available network interfaces. |
| Port (Int32) | The UDP port to listen for messages on. |
| PrintToLog (Boolean) | If enabled, prints received data and sender information to the T3 log. Useful for debugging. |
Outputs¶
| Name | Type |
|---|---|
| IsListening | System.Boolean |
| LastSenderAddress | System.String |
| LastSenderPort | System.Int32 |
| ReceivedLines | System.Collections.Generic.List`1[System.String] |
| ReceivedString | System.String |
| WasTrigger | System.Boolean |