---
title: acceptCallBack
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfsocketcallbacktype/acceptcallback
---

# acceptCallBack

New connections will be automatically accepted and the callback is called with the data argument being a pointer to a CFSocketNativeHandle of the child socket. This callback is usable only with listening sockets.

## Declaration

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

## See Also

### Constants

- [readCallBack](corefoundation/cfsocketcallbacktype/readcallback.md)
- [dataCallBack](corefoundation/cfsocketcallbacktype/datacallback.md)
- [connectCallBack](corefoundation/cfsocketcallbacktype/connectcallback.md)
- [writeCallBack](corefoundation/cfsocketcallbacktype/writecallback.md)
