---
title: readCallBack
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfsocketcallbacktype/readcallback
---

# readCallBack

The callback is called when data is available to be read or a new connection is waiting to be accepted. The data is not automatically read; the callback must read the data itself.

## Declaration

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

## See Also

### Constants

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