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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software