XNET UDP Socket Multicast Open (Read Write) VI
- Updated2025-10-07
- 3 minute(s) read
Subscribes to a UDP multicast group with read and write access on the port you specify.

Inputs/Outputs
stack
—
stack is the XNET IP Stack in which the new socket is opened.
local port
—
local port is the local port you want to use to send and receive UDP datagrams. By default (0), this VI dynamically chooses an available UDP port for communication.
multicast address
—
multicast address is the IP address of the multicast group you want to join. This terminal is required and returns an error if you do not specify an address. Multicast group addresses are in the 224.0.0.0 to 239.255.255.255 range.
time-to-live
—
time-to-live Number of routers, minus 1, to forward a datagram. The time-to-live (TTL) value applies to all datagrams sent using this socket. Setting a larger TTL value than your application requires can cause high network utilization. the default value is 1. The following table lists the action that occurs to a multicast datagram when you specify a value for the time-to-live input.
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.
local interface
—
local interface identifies a specific virtual interface in the IP Stack on which to bind the socket. The virtual interface is identified using one of the following (as returned from XNET IP Stack Get Info.vi):
This input is optional. If local interface is empty (default), the socket is bound to any virtual interface in the IP stack.
socket
—
socket is a network connection refnum that uniquely identifies the connection. Use this value to refer to this connection in subsequent VI calls.
actual local port
—
local port is the local port you want to use to send and receive UDP datagrams. By default (0), this VI dynamically chooses an available UDP port for communication.
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. |
stack
—
local port
—
multicast address
—
error in
—
socket
—
actual local port
—
error out
—