• Create multicast transports on every multicast-capable netif.

    Parameters

    • opts: {
          group?: string;
          multicastLoopback?: boolean;
          multicastTtl?: number;
          port?: number;
      } = {}
      • Optionalgroup?: string

        Multicast group address.

        224.0.23.170

        Due to dgram.Socket API limitation, if multiple multicast UDP transports are using the same port number but different group addresses, incoming traffic may be received on all sockets regardless of the group address. This also affects multicast UDP transports in other programs such as YaNFD. To isolate the traffic, the port number must be changed.

      • OptionalmulticastLoopback?: boolean

        MulticastLoopback flag.

        false

        Changing this option is inadvisable except for unit testing.

      • OptionalmulticastTtl?: number

        Multicast TTL.

        1

        Changing this option is inadvisable except for unit testing.

      • Optionalport?: number

        Local and group port.

        56363

    Returns Promise<UdpTransport[]>