Enumeration

NSStreamEvent

Describes the constants that may be sent to the delegate as a bit field in the second parameter of stream:handleEvent: to specify the kind of stream event.

Declaration

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

Topics

Constants

NSStreamEventNone

No event has occurred.

NSStreamEventOpenCompleted

The open has completed successfully.

NSStreamEventHasBytesAvailable

The stream has bytes to be read.

NSStreamEventHasSpaceAvailable

The stream can accept bytes for writing.

NSStreamEventErrorOccurred

An error has occurred on the stream.

NSStreamEventEndEncountered

The end of the stream has been reached.

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