---
title: "CFWriteStreamGetStatus(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfwritestreamgetstatus(_:)"
---

# CFWriteStreamGetStatus(_:)

Returns the current state of a stream.

## Declaration

```swift
func CFWriteStreamGetStatus(_ stream: CFWriteStream!) -> 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

- [CFWriteStreamCanAcceptBytes(_:)](corefoundation/cfwritestreamcanacceptbytes(_:).md)
- [CFWriteStreamCopyProperty(_:_:)](corefoundation/cfwritestreamcopyproperty(_:_:).md)
- [CFWriteStreamCopyError(_:)](corefoundation/cfwritestreamcopyerror(_:).md)
- [CFWriteStreamGetError(_:)](corefoundation/cfwritestreamgeterror(_:).md)
