Referring to DNSSDObjects in dns_sd.h and DNSServiceResolve in MonoTouch
问题 I want to add reference to DNSSDObjects to a project in MonoTouch, specifically DNSServiceResolve object. I want to access DNSServiceResolve in a MonoTouch project but cant find that class anywhere. How can that be done ? 回答1: I got the functions from dns_sd.h working with P/Invokes. Most of the definitions were already done in the project zeroconfignetservices [1], specifically in the file mDNSImports.cs. Instead of referencing dnssd.dll , it is /usr/lib/system/libsystem_dnssd.dylib on iOS.