Platforms to show: All Mac Windows Linux Cross-Platform

Back to DNSServiceAddrInfoMBS class.

DNSServiceAddrInfoMBS.ServiceAddrInfo(Flags as Integer, InterfaceIndex as Integer, ErrorCode as Integer, AddressFamily as Integer, IP as string, SockAddr as MemoryBlock, HostName as string, ttl as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Network MBS Network Plugin 15.0 ✅ Yes ✅ Yes ❌ No ❌ No
The event called when something is found.

Flags: Possible values are kDNSServiceFlagsMoreComing and kDNSServiceFlagsAdd.
interfaceIndex: The interface to which the answers pertain.
errorCode: Will be kDNSServiceErr_NoError (0) on success, otherwise will indicate the failure that occurred. Other parameters are undefined if errorCode is nonzero.
hostname: The fully qualified domain name of the host to be queried for.
address: IPv4 or IPv6 address.
ttl: If the client wishes to cache the result for performance reasons, the TTL indicates how long the client may legitimately hold onto this result, in seconds. After the TTL expires, the client should consider the result no longer valid, and if it requires this data again, it should be re-fetched with a new query. Of course, this only applies to clients that cancel the asynchronous operation when they get a result. Clients that leave the asynchronous operation running can safely assume that the data remains valid until they get another callback telling them otherwise.

Some examples using this event:

The items on this page are in the following plugins: MBS Network Plugin.


The biggest plugin in space...