---
title: CFStreamEventType
framework: corefoundation
role: symbol
role_heading: Structure
path: corefoundation/cfstreameventtype
---

# CFStreamEventType

Defines constants for stream-related events.

## Declaration

```swift
struct CFStreamEventType
```

## Overview

Overview This enumeration defines constants for stream-related events.

## Topics

### Constants

- [openCompleted](corefoundation/cfstreameventtype/opencompleted.md)
- [hasBytesAvailable](corefoundation/cfstreameventtype/hasbytesavailable.md)
- [canAcceptBytes](corefoundation/cfstreameventtype/canacceptbytes.md)
- [errorOccurred](corefoundation/cfstreameventtype/erroroccurred.md)
- [endEncountered](corefoundation/cfstreameventtype/endencountered.md)

### Initializers

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

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Constants

- [CFStreamStatus](corefoundation/cfstreamstatus.md)
- [CFStreamErrorDomain](corefoundation/cfstreamerrordomain.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)
- [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)
