Platforms to show: All Mac Windows Linux Cross-Platform
Back to DNSServiceDomainEnumerationMBS class.
DNSServiceDomainEnumerationMBS.EnumerateDomains(Flags as Integer, InterfaceIndex as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Network | MBS Network Plugin | 5.0 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
Note that the names returned are (like all of DNS-SD) UTF-8 strings, and are escaped using standard DNS escaping rules.
A graphical browser displaying a hierarchical tree-structured view should cut the names at the bare dots to yield individual labels, then de-escape each label according to the escaping rules, and then display the resulting UTF-8 text.
Flags for specifying domain enumeration type in DNSServiceEnumerateDomains.
BrowseDomains enumerates domains recommended for browsing, RegistrationDomains enumerates domains recommended for registration:
kDNSServiceFlagsBrowseDomains | = 64 |
kDNSServiceFlagsRegistrationDomains | = 128 |
You need to keep this object alive (keep a reference in a window, a module or your app class) so you can receive events.
For interface indexes, please also check NetworkInterfaceMBS class.
Returns false on any error and true on success. Please check lasterror property when false is returned.
The items on this page are in the following plugins: MBS Network Plugin.