X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-sharp%2FAvahiTest.cs;h=ba4d59b9e7b2a343843e102fdee36a890304b417;hb=8a0e03b4fc8687a91b9a6800145e613c3a009247;hp=07b539653227025074925ef059ccd5bf6f2ac18c;hpb=69d2b9fee695cf2e65f1eda9c8ce66085efe2856;p=catta diff --git a/avahi-sharp/AvahiTest.cs b/avahi-sharp/AvahiTest.cs index 07b5396..ba4d59b 100644 --- a/avahi-sharp/AvahiTest.cs +++ b/avahi-sharp/AvahiTest.cs @@ -36,11 +36,13 @@ public class AvahiTest { EntryGroup eg = new EntryGroup (client); eg.StateChanged += OnEntryGroupChanged; - eg.AddService ("foobar2", "_daap._tcp", client.DomainName, + eg.AddService ("foobar2", "_dingdong._tcp", client.DomainName, 444, new string[] { "foo=stuff", "bar=stuff2", "baz=stuff3" }); eg.Commit (); + BrowseServiceTypes ("local"); Console.WriteLine ("Press enter to quit"); Console.ReadLine (); + client.Dispose (); } private static void OnEntryGroupChanged (object o, EntryGroupStateArgs args) @@ -57,7 +59,7 @@ public class AvahiTest { private static void OnDomainAdded (object o, DomainInfoArgs args) { Console.WriteLine ("Got domain added: " + args.Domain.Domain); - BrowseServiceTypes (args.Domain.Domain); + // BrowseServiceTypes (args.Domain.Domain); } private static void BrowseServiceTypes (string domain)