MonobjcMonobjc Documented Class Library
NSStreamStatus Enumeration
NamespacesMonobjc.FoundationNSStreamStatus

These constants indicate the current status of a stream. They are returned by streamStatus.

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSStreamStatus
Public Enumeration NSStreamStatus
public enum class NSStreamStatus
Members
MemberDescription
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.

Available in Mac OS X v10.3 and later.


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.

Available in Mac OS X v10.3 and later.


NSStreamStatusOpen

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

Available in Mac OS X v10.3 and later.


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.

Available in Mac OS X v10.3 and later.


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.

Available in Mac OS X v10.3 and later.


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.

Available in Mac OS X v10.3 and later.


NSStreamStatusClosed

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

Available in Mac OS X v10.3 and later.


NSStreamStatusError

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

Available in Mac OS X v10.3 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)