Interface UdpBindingServiceFactory


public interface UdpBindingServiceFactory
Factory to create UdpBindingService instances.
  • Method Details

    • createUdpBindingService

      UdpBindingService createUdpBindingService(NetworkInterface networkInterface, @Nullable InetAddress multicastAddress, Integer multicastPort, Integer maxMessageSize)
      Creates a UdpBindingService instance.

      The outgoing socket port is chosen by the operating system.

      Parameters:
      networkInterface - the network interface to bind the UDP socket to.
      multicastAddress - the UDP socket multicast address to join if desired (nullable for no multicast join).
      multicastPort - the UDP multicast socket port.
      maxMessageSize - maximum allowed message size for any messages sent over this binding.
      Returns:
      the instance.