Enumeration

NSStreamStatus

The type declared for the constants listed in Stream Status Constants.

Declaration

typedef enum NSStreamStatus : NSUInteger {
    ...
} NSStreamStatus;

Topics

Enumeration Cases

NSStreamStatusAtEnd

There is no more data to read, or no more data can be written to the stream. When this status is returned, the stream is in a “non-blocking” mode and no data are available.

NSStreamStatusClosed

The stream is closed (close has been called on it).

NSStreamStatusError

The remote end of the connection can’t be contacted, or the connection has been severed for some other reason.

NSStreamStatusNotOpen

The stream is not open for reading or writing. This status is returned before the underlying call to open a stream but after it’s been created.

NSStreamStatusOpen

The stream is open, but no reading or writing is occurring.

NSStreamStatusOpening

The stream is in the process of being opened for reading or for writing. For network streams, this status might include the time after the stream was opened, but while network DNS resolution is happening.

NSStreamStatusReading

Data is being read from the stream. This status would be returned if code on another thread were to call streamStatus on the stream while a read:maxLength: call (NSInputStream) was in progress.

NSStreamStatusWriting

Data is being written to the stream. This status would be returned if code on another thread were to call streamStatus on the stream while a write:maxLength: call (NSOutputStream) was in progress.

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