XNET UDP Socket Read (Binary) VI
- Updated2025-10-07
- 3 minute(s) read
Reads a binary datagram from a UDP socket.

Inputs/Outputs
socket in
—
socket in is a network connection refnum that uniquely identifies the UDP socket. Use XNET UDP Socket Open or XNET UDP Socket Multicast Open to generate a refnum to wire to this input.
max size (548)
—
max size (548) is the maximum number of bytes to read. You should wire the largest value your application expects. This number must be greater than or equal to the size of the actual datagram. The default is 548 bytes.
timeout ms (25000)
—
timeout ms (25000) specifies the time, in milliseconds, that the VI waits to complete before reporting a timeout error. The default value is 25,000. Wire a –1 to this input to wait indefinitely.
error in
—
The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.
socket out
—
socket out is the same value as socket in.
data
—
data is data read from the UDP datagram.
error out
—
The error out cluster passes error or warning information out of a VI to be used by other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.
remote port
—
remote port is the port of the UDP socket that sent the datagram.
remote address
—
remote address is the IP address of the computer where a datagram originates. |
socket in
—
max size (548)
—
error in
—
socket out
—
data
—
error out
—
remote port
—
remote address
—