---
title: "CFHostGetAddressing(_:_:)"
framework: cfnetwork
role: symbol
role_heading: Function
path: "cfnetwork/cfhostgetaddressing(_:_:)"
---

# CFHostGetAddressing(_:_:)

Gets the addresses from a host.

## Declaration

```swift
func CFHostGetAddressing(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>?) -> Unmanaged<CFArray>?
```

## Parameters

- `theHost`: The CFHost whose addresses are to be obtained. This value must not be NULL.
- `hasBeenResolved`: On return, a pointer to a Boolean that is TRUE if addresses were available and FALSE if addresses were not available. This parameter can be null.

## Discussion

Discussion This function gets the addresses from a CFHost. The CFHost must have been previously resolved. To resolve a CFHost, call CFHostStartInfoResolution(_:_:_:). Special Considerations This function gets the addresses in a thread-safe way, but the resulting data is not thread-safe. The data is returned as a “get” as opposed to a copy, so the data is not safe if the CFHost is altered from another thread.

## 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)
- [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)
