kCFStreamPropertyShouldCloseNativeSocket
Should Close Native Socket property key.
Declaration
let kCFStreamPropertyShouldCloseNativeSocket: CFStringDiscussion
If set to kCFBooleanTrue, the stream will close and release the underlying native socket when the stream is released. If set to kCFBooleanFalse, the stream will not close and release the underlying native socket when the stream is released. If a stream is created with a native socket, the default value of this property is kCFBooleanFalse. This property is only available for socket streams. It can be set by calling CFReadStreamSetProperty(_:_:_:) and CFWriteStreamSetProperty(_:_:_:), and it can be copied by CFReadStreamCopyProperty(_:_:) and CFWriteStreamCopyProperty(_:_:).
See Also
Constants
appendToFiledataWrittenfileCurrentOffsetsocketNativeHandlesocketRemoteHostNamesocketRemotePortNumberkCFStreamPropertySocketSecurityLevelkCFStreamPropertySSLPeerCertificateskCFStreamPropertySSLPeerTrustkCFStreamPropertySSLSettingskCFStreamPropertySSLContextkCFStreamPropertySOCKSProxykCFStreamPropertyProxyLocalBypasskCFStreamPropertySocketRemoteHostkCFStreamPropertySocketRemoteNetService