---
title: "CFHostCancelInfoResolution(_:_:)"
framework: cfnetwork
role: symbol
role_heading: Function
path: "cfnetwork/cfhostcancelinforesolution(_:_:)"
---

# CFHostCancelInfoResolution(_:_:)

Cancels the resolution of a host.

## Declaration

```swift
func CFHostCancelInfoResolution(_ theHost: CFHost, _ info: CFHostInfoType)
```

## Parameters

- `theHost`: The host for which a resolution is to be cancelled. This value must not be NULL.
- `info`: A value of type CFHostInfoType specifying the type of resolution that is to be cancelled. See doc://com.apple.cfnetwork/documentation/CFNetwork/CFHostInfoType for possible values.

## Discussion

Discussion This function cancels the asynchronous or synchronous resolution specified by info for the host specified by theHost. Special Considerations This function is thread safe.

## See Also

### Hosts

- [CFHost](cfnetwork/cfhost.md)
- [CFHostInfoType](cfnetwork/cfhostinfotype.md)
- [CFHostClientContext](cfnetwork/cfhostclientcontext.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)
- [CFHostStartInfoResolution(_:_:_:)](cfnetwork/cfhoststartinforesolution(_:_:_:).md)
- [CFHostUnscheduleFromRunLoop(_:_:_:)](cfnetwork/cfhostunschedulefromrunloop(_:_:_:).md)
