Enumeration

CFStreamStatus

Constants that describe the status of a stream.

Declaration

enum CFStreamStatus : CFIndex

Overview

The CFStreamStatus enumeration defines constants that describe the status of a stream. These values are returned by CFReadStreamGetStatus(_:) and CFWriteStreamGetStatus(_:).

Topics

Constants

case notOpen

The stream is not open for reading or writing.

case opening

The stream is being opened for reading or for writing.

case open

The stream is open.

case reading

The stream is being read from.

case writing

The stream is being written to.

case atEnd

There is no more data to read, or no more data can be written.

case closed

The stream is closed.

case error

An error occurred on the stream.