Sets the value of a property for a stream.
- iOS 2.0+
- macOS 10.2+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The stream to modify.
The name of the property to set. The available properties for standard Core Foundation streams are listed in CFStream.
The value to which to set the property
stream. The allowed data type of the value depends on the property being set.
stream recognizes and accepts the given property-value pair, otherwise
Each type of stream can define a set of properties that either describe or configure individual streams. A property can be any interesting information about a stream. Examples include the headers from an HTTP transmission, the expected number of bytes, file permission information, and so on. Properties that can be set configure the behavior of the stream and may be modifiable only at particular times, such as before the stream has been opened. (In fact, you should assume that you can set properties only before opening the stream, unless otherwise noted.) To read the value of a property use
CFRead, although some properties are write-only.