Function

CFReadStreamGetError

Returns the error status of a stream.

Declaration

CFStreamError CFReadStreamGetError(CFReadStreamRef stream);

Parameters

stream

The stream to examine.

Return Value

The error status of stream returned in a CFStreamError structure.

The error field is 0 if no error has occurred. If the error field is not 0, the domain field contains a code that identifies the domain in which the value of the error field should be interpreted.

See Also

Examining Stream Properties

CFReadStreamCopyProperty

Returns the value of a property for a stream.

CFReadStreamGetBuffer

Returns a pointer to a stream’s internal buffer of unread data, if possible.

CFReadStreamCopyError

Returns the error associated with a stream.

CFReadStreamGetStatus

Returns the current state of a stream.

CFReadStreamHasBytesAvailable

Returns a Boolean value that indicates whether a readable stream has data that can be read without blocking.