<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFSocketCallBackType/acceptCallBack",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@E@CFSocketCallBackType@kCFSocketAcceptCallBack"
  },
  "title" : "acceptCallBack"
}
-->

# acceptCallBack

New connections will be automatically accepted and the callback is called with the data argument being a pointer to a [`CFSocketNativeHandle`](/documentation/CoreFoundation/CFSocketNativeHandle) of the child socket. This callback is usable only with listening sockets.

```
static var acceptCallBack: CFSocketCallBackType { get }
```

---

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)