{"action":"created","issue":{"url":"https://api.github.com/repos/mrdunk/esp8266_mdns/issues/1","labels_url":"https://api.github.com/repos/mrdunk/esp8266_mdns/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mrdunk/esp8266_mdns/issues/1/comments","events_url":"https://api.github.com/repos/mrdunk/esp8266_mdns/issues/1/events","html_url":"https://github.com/mrdunk/esp8266_mdns/issues/1","id":101205528,"number":1,"title":"How to see all hosts on network immediately?","user":{"login":"probonopd","id":2480569,"avatar_url":"https://avatars.githubusercontent.com/u/2480569?v=3","gravatar_id":"","url":"https://api.github.com/users/probonopd","html_url":"https://github.com/probonopd","followers_url":"https://api.github.com/users/probonopd/followers","following_url":"https://api.github.com/users/probonopd/following{/other_user}","gists_url":"https://api.github.com/users/probonopd/gists{/gist_id}","starred_url":"https://api.github.com/users/probonopd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probonopd/subscriptions","organizations_url":"https://api.github.com/users/probonopd/orgs","repos_url":"https://api.github.com/users/probonopd/repos","events_url":"https://api.github.com/users/probonopd/events{/privacy}","received_events_url":"https://api.github.com/users/probonopd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-15T20:04:18Z","updated_at":"2015-08-16T16:42:13Z","closed_at":null,"body":"Is there a way to \"ping\" (not literally ping but the mdns-sd equivalent, it it exists) all services on the network, so that they are displayed immediately (rather than when they proactively send information about themselves)?"},"comment":{"url":"https://api.github.com/repos/mrdunk/esp8266_mdns/issues/comments/131580285","html_url":"https://github.com/mrdunk/esp8266_mdns/issues/1#issuecomment-131580285","issue_url":"https://api.github.com/repos/mrdunk/esp8266_mdns/issues/1","id":131580285,"user":{"login":"mrdunk","id":5035250,"avatar_url":"https://avatars.githubusercontent.com/u/5035250?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdunk","html_url":"https://github.com/mrdunk","followers_url":"https://api.github.com/users/mrdunk/followers","following_url":"https://api.github.com/users/mrdunk/following{/other_user}","gists_url":"https://api.github.com/users/mrdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdunk/subscriptions","organizations_url":"https://api.github.com/users/mrdunk/orgs","repos_url":"https://api.github.com/users/mrdunk/repos","events_url":"https://api.github.com/users/mrdunk/events{/privacy}","received_events_url":"https://api.github.com/users/mrdunk/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T16:42:13Z","updated_at":"2015-08-16T16:42:13Z","body":"in my answerCallback() function\r\nthe \" Did not find \"xxx._tcp.local\" in hosts buffer\" messages will occur whenever you get a type \"A\" DNS record before you got \r\na type \"PTR\" DNS record about the service name you are searching for.\r\n\r\nthis makes sense in my code because it presumes you are only interested in replies to queries for a specific service.\r\nyou don't want that though.\r\nif you want the full map of all services provided by all hosts you'll need to write your own answerCallback() function.\r\n\r\n\r\ntry something like this for your answerCallback() to see just the available services:\r\n```\r\nvoid answerCallback(const mdns::Answer* answer) {\r\n  if (answer->rrtype == MDNS_TYPE_PTR and \r\n      strstr(answer->name_buffer, \"_services._dns-sd._udp.local\") != 0){\r\n    Serial.print(\" Service name: \");\r\n    Serial.printls(answer->rdata_buffer);\r\n  }\r\n}\r\n```\r\n\r\nonce you make a list of services you then need to do what i did in the mdns_test example for each service."}}