title: Bonjour Service Browser with Swift does not fetch serviceinfo
body: <p>The service I want to connect to is published via Bonjour.<br>
  I can find all the info with the Bonjour Browser, however if I try to gather the data programmatically, the only value I get, is the name of the service.</p>
  
  <p>The NetService delegate is set and the function netServiceWillPublish is called.
  The functions DidNotPublish or DidPublish are not executed.</p>
  
  <p>The function netServiceBrowser gets all published netServices, but all properties are set to the default value of the datatype.</p>
  
  <pre><code>import UIKit
  
  class BMNSDelegate : NSObject, NetServiceDelegate {
      func netServiceWillPublish(_ sender: NetService) {
          print("netServiceWillPublish:\(sender)");  //This method is called
      }
  
  
      func netService(_ sender: NetService, didNotPublish errorDict: [String : NSNumber]){ 
          print("didNotPublish:\(sender)");
      }
  
      func netServiceDidPublish(_ sender: NetService) {
          print("netServiceDidPublish:\(sender)");
      }
      func netServiceWillResolve(_ sender: NetService) {
          print("netServiceWillResolve:\(sender)");
      }
  
      func netService(_ sender: NetService, didNotResolve errorDict: [String : NSNumber]) {
          print("netServiceDidNotResolve:\(sender)");
      }
  
      func netServiceDidResolveAddress(_ sender: NetService) {
          print("netServiceDidResolve:\(sender)");
      }
  
      func netService(_ sender: NetService, didUpdateTXTRecord data: Data) {
          print("netServiceDidUpdateTXTRecordData:\(sender)");
      }
  
      func netServiceDidStop(_ sender: NetService) {
          print("netServiceDidStopService:\(sender)");
      }
  
      func netService(_ sender: NetService,
                      didAcceptConnectionWith inputStream: InputStream,
                      outputStream stream: OutputStream) {
          print("netServiceDidAcceptConnection:\(sender)");
      }
  }
  
  class BMBrowserDelegate : NSObject, NetServiceBrowserDelegate, NetServiceDelegate {
  
      func netServiceBrowser(_ netServiceBrowser: NetServiceBrowser,
                             didFind netService: NetService,
                             moreComing moreServicesComing: Bool) {
          let nsnsdel = BMNSDelegate()
          netService.delegate = nsnsdel
          netService.resolve(withTimeout: 1)
          print(netService.domain) // local.
          print(netService.name) // This property is correct
          print(netService.type) // _http._tcp.
          print(netService.addresses) // Optional([])
          print(netService.hostName) // nil
          print(netService.port) // -1
          print(moreServicesComing) //false
      }
  
  }
  
  
  let SERVICE_TYPE = "_http._tcp."
  let BM_DOMAIN = "local."
  let browser = NetServiceBrowser()
  let nsbdel = BMBrowserDelegate()
  browser.delegate = nsbdel
  browser.searchForServices(ofType: SERVICE_TYPE, inDomain:         BM_DOMAIN)
  RunLoop.current.run()
  </code></pre>