|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||Cocoa||MBS Bluetooth Plugin||18.1||Yes||No||No||Yes, macOS only||No|
This class's interface is common to all Cocoa stream classes, including its concrete subclasses NSInputStream and NSOutputStream.
NSStream objects provide an easy way to read and write data to and from a variety of media in a device-independent way. You can create stream objects for data located in memory, in a file, or on a network (using sockets), and you can use stream objects without loading all of the data into memory at once.
By default, NSStream instances that are not file-based are non-seekable, one-way streams (although custom seekable subclasses are possible). Once the data has been provided or consumed, the data cannot be retrieved from the stream.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 4 properties
- 4 methods
- 8 constants
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.
The stream is closed (close has been called on it).
The remote end of the connection can’t be contacted, or the connection has been severed for some other reason.
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.
The stream is open, but no reading or writing is occurring.
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.
Data is being read from the stream. This status would be returned if code on another thread were to call
Status on the stream while a read() was in progress.
Data is being written to the stream. This status would be returned if code on another thread were to call
Status on the stream while a write() was in progress.
The items on this page are in the following plugins: MBS Bluetooth Plugin.
MBS FileMaker blog