kDNSServiceFlagsTimeout
Declaration
var kDNSServiceFlagsTimeout: UInt32 { get }Discussion
When passed to DNSServiceQueryRecord(_:_:_:_:_:_:_:_:) or DNSServiceGetAddrInfo(_:_:_:_:_:_:_:), the query is stopped after a certain number of seconds have elapsed. The time at which the query is stopped is determined by the system and cannot be configured by the user. The query is stopped irrespective of whether a response was given earlier or not. When the query is stopped, the callback is called with an error code of kDNSServiceErr_Timeout and a NULL sockaddr is returned for DNSServiceGetAddrInfo(_:_:_:_:_:_:_:) and zero length rdata is returned for DNSServiceQueryRecord(_:_:_:_:_:_:_:_:).