{"id":612,"date":"2004-07-02T13:18:44","date_gmt":"2004-07-02T17:18:44","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=612"},"modified":"2004-07-02T13:18:44","modified_gmt":"2004-07-02T17:18:44","slug":"rendezvous-and-java-example","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2004\/07\/02\/rendezvous-and-java-example\/","title":{"rendered":"Rendezvous and Java example"},"content":{"rendered":"<p>Lots of talk right now about Apple and it&#8217;s releasing of Rendezvous (<a href=\"http:\/\/postneo.com\/2004\/07\/02.html#a3479\">Matt #1<\/a>, <a href=\"http:\/\/postneo.com\/2004\/07\/01.html#a3477\">Matt #2<\/a>, <a href=\"http:\/\/www.sauria.com\/blog\/2004\/07\/01#999\">Ted<\/a>, <a href=\"http:\/\/marc.blogs.it\/archives\/2004\/06\/apples_rendezvo.html\">Marc<\/a>, <a href=\"http:\/\/www.intertwingly.net\/blog\/2004\/06\/30\/Rendezvous-for-Windows\">Sam<\/a>) into the wild. I downloaded the <a href=\"http:\/\/developer.apple.com\/macosx\/rendezvous\/RendezvousSetup.exe\">Windows Preview<\/a> and extracted the SDK and was able to get minimally interesting things up and running very easily using Java.  Below is a simple class that implements the <a href=\"http:\/\/developer.apple.com\/documentation\/Java\/Reference\/DNSServiceDiscovery_JavaRef\/com\/apple\/dnssd\/BrowseListener.html\">BrowseListener<\/a> interface and has utility methods for finding iTunes (protocol = DAAP), HTTP Servers (protocol = HTTP) and printers (protocol = LPR).<br \/>\n<code><br \/>\n\/\/ class that implements the BrowseListenr interface<br \/>\npublic class TestBrowseListener implements BrowseListener {<br \/>\n&nbsp;<br \/>\n&nbsp;DNSSDService myBrowser = null;<br \/>\n&nbsp;<br \/>\n&nbsp;public void serviceFound(DNSSDService browser, int flags, int ifIndex,<br \/>\n&nbsp;&nbsp;String serviceName, String regType, String domain) {<br \/>\n&nbsp;&nbsp;<br \/>\n&nbsp;&nbsp;\/\/ do stuff when a service is found<br \/>\n&nbsp;&nbsp;System.out.println(\"Service Found\\n\");<br \/>\n&nbsp;&nbsp;System.out.println(\"<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lots of talk right now about Apple and it&#8217;s releasing of Rendezvous (Matt #1, Matt #2, Ted, Marc, Sam) into the wild. I downloaded the Windows Preview and extracted the SDK and was able to get minimally interesting things up and running very easily using Java. Below is a simple class that implements the BrowseListener &hellip; <a href=\"https:\/\/cephas.net\/blog\/2004\/07\/02\/rendezvous-and-java-example\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Rendezvous and Java example<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,21],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/612"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=612"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/612\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}