MdnsDiscovery constructor

MdnsDiscovery(
  1. Host _host, {
  2. String? serviceName,
  3. MdnsNotifee? notifee,
})

Creates a new MdnsDiscovery service

Implementation

MdnsDiscovery(this._host, {
  String? serviceName,
  MdnsNotifee? notifee,
}) :
  _serviceName = serviceName ?? MdnsConstants.serviceName,
  _peerName = _generateRandomString(32 + Random().nextInt(32)),
  _notifee = notifee;