Contents

DNSServiceDomainEnumReply

Callback for handling the results of a previous call to Dnsserviceenumeratedomains(_:_:_:_:_:).

Declaration

typealias DNSServiceDomainEnumReply = (DNSServiceRef?, DNSServiceFlags, UInt32, DNSServiceErrorType, UnsafePointer<CChar>?, UnsafeMutableRawPointer?) -> Void

Parameters

  • sdRef:

    The DNSServiceRef initialized by Dnsserviceenumeratedomains(_:_:_:_:_:).

  • flags:

    Possible values are:

    Kdnsserviceflagsmorecoming

    kDNSServiceFlagsAdd

    kDNSServiceFlagsDefault

  • interfaceIndex:

    Specifies the interface on which the domain exists. (The index for a given interface is determined via the if_nametoindex() family of calls.)

  • errorCode:

    Will be Kdnsserviceerr_noerror (0) on success, otherwise indicates the failure that occurred (other parameters are undefined if errorCode is nonzero).

  • replyDomain:

    The name of the domain.

  • context:

    The context pointer passed to DNSServiceEnumerateDomains.

See Also

Callbacks