<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFStreamEventType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@E@CFStreamEventType"
  },
  "title" : "CFStreamEventType"
}
-->

# CFStreamEventType

Defines constants for stream-related events.

```
struct CFStreamEventType
```

## Overview

This enumeration defines constants for stream-related events.

## Topics

### Constants

[`kCFStreamEventNone`](/documentation/CoreFoundation/CFStreamEventType/kCFStreamEventNone)

No event has occurred.

[`openCompleted`](/documentation/CoreFoundation/CFStreamEventType/openCompleted)

The open has completed successfully.

[`hasBytesAvailable`](/documentation/CoreFoundation/CFStreamEventType/hasBytesAvailable)

The stream has bytes to be read.

[`canAcceptBytes`](/documentation/CoreFoundation/CFStreamEventType/canAcceptBytes)

The stream can accept bytes for writing.

[`errorOccurred`](/documentation/CoreFoundation/CFStreamEventType/errorOccurred)

An error has occurred on the stream.

[`endEncountered`](/documentation/CoreFoundation/CFStreamEventType/endEncountered)

The end of the stream has been reached.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)