Function

CFWriteStreamCanAcceptBytes(_:)

Returns whether a writable stream can accept new data without blocking.

Declaration

func CFWriteStreamCanAcceptBytes(_ stream: CFWriteStream!) -> Bool

Parameters

stream

The stream to examine.

Return Value

true if data can be written to stream without blocking, false otherwise. If stream cannot tell if data can be written without actually trying to write the data, this function returns true.

See Also

Examining Stream Properties