<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/kCFSocketAutomaticallyReenableWriteCallBack",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@Ea@kCFSocketAutomaticallyReenableReadCallBack@kCFSocketAutomaticallyReenableWriteCallBack"
  },
  "title" : "kCFSocketAutomaticallyReenableWriteCallBack"
}
-->

# kCFSocketAutomaticallyReenableWriteCallBack

```
var kCFSocketAutomaticallyReenableWriteCallBack: CFOptionFlags { get }
```

## Discussion

When enabled using [`CFSocketSetSocketFlags(_:_:)`](/documentation/CoreFoundation/CFSocketSetSocketFlags(_:_:)), the write callback is called every time more data can be written to the socket. When disabled, the write callback is called only the next time data can be written. The write callback is not automatically reenabled by default.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)