UdpEndpoint constructor

UdpEndpoint({
  1. required String host,
  2. required int port,
  3. int ttl = 1,
  4. required String interface,
  5. bool connect = false,
  6. bool secure = false,
  7. required List<InternetAddress> addressList,
  8. Endpoint? underlying,
  9. bool compress = false,
})

Implementation

UdpEndpoint({
  required String host,
  required int port,
  this.ttl = 1,
  required this.interface,
  this.connect = false,
  this.secure = false,
  required List<InternetAddress> addressList,
  Endpoint? underlying,
  bool compress = false,
}) : super(
        protocol: 'udp',
        host: host,
        port: port,
        sourceAddress: '',
        addressList: addressList,
        underlying: underlying,
        timeout: 0,
        compress: compress,
      );