Reads a string datagram from a UDP socket.


icon

Inputs/Outputs

  • cgenclassrn.png 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.

  • ci32.png 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.

  • ci32.png 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.

  • cerrcodeclst.png 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.

  • igenclassrn.png socket out

    socket out is the same value as socket in.

  • istr.png data

    data is data read from the UDP datagram.

  • ierrcodeclst.png 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.

  • iu16.png remote port

    remote port is the port of the UDP socket that sent the datagram.

  • istr.png remote address

    remote address is the IP address of the computer where a datagram originates.