title: Example of DNSServiceRegister and DNSServiceBrowse for iOS5 Bonjour through bluetooth communication
body: <p>I am looking for an example code that shows how to use <code>DNSServiceRegister</code> to register a service with a Bonjour and an example code that shows how to correctly use <code>DNSServiceBrowse</code> to discover services. </p>
  
  <p>I am aware of the <a href="http://developer.apple.com/library/mac/#documentation/Networking/Conceptual/dns_discovery_api/Articles/registering.html#//apple_ref/doc/uid/TP40002478-SW2" rel="nofollow">docs</a>, which I have read and there is no examples there.</p>
  
  <p>What I essentially would like to do is to use does low level classes to broadcast and search for services through a bluetooth network and then use <a href="https://github.com/robbiehanson/CocoaAsyncSocket" rel="nofollow"><code>GCDAsyncSocket</code></a> to comunicate b/w them.</p>