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 ?
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 ?
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.So for example, the definition for DNSServiceQueryRecord would be:
And a query for an SRV record would be as follows:
All the classes, enums, etc. not defined here are from [1].
References: