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 ();
}
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)
if (str == null)
return null;
- return Encoding.UTF8.GetBytes (str);
+ return Encoding.UTF8.GetBytes (str + "\0"); // lame.
}
private static IntPtr StringToPtr (string str)