---
title: "CFReadStreamGetStatus(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfreadstreamgetstatus(_:)"
---

# CFReadStreamGetStatus(_:)

Returns the current state of a stream.

## Declaration

```swift
func CFReadStreamGetStatus(_ stream: CFReadStream!) -> CFStreamStatus
```

## Parameters

- `stream`: The stream to examine.

## Return Value

Return Value The current state of stream. See CFStreamStatus for the list of possible states.

## See Also

### Examining Stream Properties

- [CFReadStreamCopyProperty(_:_:)](corefoundation/cfreadstreamcopyproperty(_:_:).md)
- [CFReadStreamGetBuffer(_:_:_:)](corefoundation/cfreadstreamgetbuffer(_:_:_:).md)
- [CFReadStreamCopyError(_:)](corefoundation/cfreadstreamcopyerror(_:).md)
- [CFReadStreamGetError(_:)](corefoundation/cfreadstreamgeterror(_:).md)
- [CFReadStreamHasBytesAvailable(_:)](corefoundation/cfreadstreamhasbytesavailable(_:).md)
