---
title: CFStreamErrorDomain
framework: corefoundation
role: symbol
role_heading: Enumeration
path: corefoundation/cfstreamerrordomain
---

# CFStreamErrorDomain

Defines constants for values returned in the domain field of the CFStreamError structure.

## Declaration

```swift
enum CFStreamErrorDomain
```

## Overview

Overview These constants indicate how the error code in the error field in the CFStreamError structure should be interpreted.

## Topics

### Constants

- [CFStreamErrorDomain.custom](corefoundation/cfstreamerrordomain/custom.md)
- [CFStreamErrorDomain.POSIX](corefoundation/cfstreamerrordomain/posix.md)
- [CFStreamErrorDomain.macOSStatus](corefoundation/cfstreamerrordomain/macosstatus.md)

### Initializers

- [init(rawValue:)](corefoundation/cfstreamerrordomain/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [CFStreamStatus](corefoundation/cfstreamstatus.md)
- [CFStream Error Domain Constants (CFHost)](corefoundation/cfstream-error-domain-constants-cfhost.md)
- [Error Subdomains](corefoundation/error-subdomains.md)
- [Secure Sockets (SOCKS) Errors](cfnetwork/1518266-secure-sockets-socks-errors.md)
- [CFStreamEventType](corefoundation/cfstreameventtype.md)
- [Stream Properties](corefoundation/stream-properties.md)
- [CFStream Property SSL Settings Constants](corefoundation/cfstream-property-ssl-settings-constants.md)
- [CFStream Socket Security Level Constants](corefoundation/cfstream-socket-security-level-constants.md)
- [CFStream SOCKS Proxy Key Constants](corefoundation/cfstream-socks-proxy-key-constants.md)
- [Stream Service Types](corefoundation/stream-service-types.md)
