sample code for bonjour browse, resolve, and query