---
title: "CFHostStartInfoResolution(_:_:_:)"
framework: cfnetwork
role: symbol
role_heading: Function
path: "cfnetwork/cfhoststartinforesolution(_:_:_:)"
---

# CFHostStartInfoResolution(_:_:_:)

Starts resolution for a host object.

## Declaration

```swift
func CFHostStartInfoResolution(_ theHost: CFHost, _ info: CFHostInfoType, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool
```

## Parameters

- `theHost`: The host, obtained by previously calling doc://com.apple.cfnetwork/documentation/CFNetwork/CFHostCreateCopy(_:_:), doc://com.apple.cfnetwork/documentation/CFNetwork/CFHostCreateWithAddress(_:_:), or doc://com.apple.cfnetwork/documentation/CFNetwork/CFHostCreateWithName(_:_:), that is to be resolved. This value must not be NULL.
- `info`: A value of type CFHostInfoType specifying the type of information that is to be retrieved. See doc://com.apple.cfnetwork/documentation/CFNetwork/CFHostInfoType for possible values.
- `error`: A pointer to a doc://com.apple.documentation/documentation/CoreFoundation/CFStreamError structure, that, if an error occurs, is set to the error and the error’s domain. In synchronous mode, the error indicates why resolution failed, and in asynchronous mode, the error indicates why resolution failed to start.

## Return Value

Return Value TRUE if the resolution was started (asynchronous mode); FALSE if another resolution is already in progress for theHost or if an error occurred.

## Discussion

Discussion This function retrieves the information specified by info and stores it in the host. In synchronous mode, this function blocks until the resolution has completed, in which case this function returns TRUE, until the resolution is stopped by calling CFHostCancelInfoResolution(_:_:) from another thread, in which case this function returns FALSE, or until an error occurs. Special Considerations This function is thread safe.

## See Also

### Hosts

- [CFHost](cfnetwork/cfhost.md)
- [CFHostInfoType](cfnetwork/cfhostinfotype.md)
- [CFHostClientContext](cfnetwork/cfhostclientcontext.md)
- [CFHostCancelInfoResolution(_:_:)](cfnetwork/cfhostcancelinforesolution(_:_:).md)
- [CFHostCreateCopy(_:_:)](cfnetwork/cfhostcreatecopy(_:_:).md)
- [CFHostCreateWithAddress(_:_:)](cfnetwork/cfhostcreatewithaddress(_:_:).md)
- [CFHostCreateWithName(_:_:)](cfnetwork/cfhostcreatewithname(_:_:).md)
- [CFHostGetAddressing(_:_:)](cfnetwork/cfhostgetaddressing(_:_:).md)
- [CFHostGetNames(_:_:)](cfnetwork/cfhostgetnames(_:_:).md)
- [CFHostGetReachability(_:_:)](cfnetwork/cfhostgetreachability(_:_:).md)
- [CFHostGetTypeID()](cfnetwork/cfhostgettypeid().md)
- [CFHostScheduleWithRunLoop(_:_:_:)](cfnetwork/cfhostschedulewithrunloop(_:_:_:).md)
- [CFHostSetClient(_:_:_:)](cfnetwork/cfhostsetclient(_:_:_:).md)
- [CFHostUnscheduleFromRunLoop(_:_:_:)](cfnetwork/cfhostunschedulefromrunloop(_:_:_:).md)
