DNSServiceCreateConnection(_:)
Creates a connection to the daemon, allowing efficient registration of multiple individual records.
Declaration
func DNSServiceCreateConnection(_ sdRef: UnsafeMutablePointer<DNSServiceRef?>!) -> DNSServiceErrorTypeParameters
- sdRef:
A pointer to an uninitialized DNSServiceRef. Deallocating the reference (via Dnsservicerefdeallocate(_:)) severs the connection and deregisters all records registered on this connection.
Return Value
Returns kDNSServiceErr_NoError on success, otherwise returns an error code indicating the specific failure that occurred (in which case the DNSServiceRef is not initialized).