---
title: CFSocketContext
framework: corefoundation
role: symbol
role_heading: Structure
path: corefoundation/cfsocketcontext
---

# CFSocketContext

A structure that contains program-defined data and callbacks with which you can configure a CFSocket object’s behavior.

## Declaration

```swift
struct CFSocketContext
```

## Topics

### Initializers

- [init()](corefoundation/cfsocketcontext/init().md)
- [init(version:info:retain:release:copyDescription:)](corefoundation/cfsocketcontext/init(version:info:retain:release:copydescription:).md)

### Instance Properties

- [copyDescription](corefoundation/cfsocketcontext/copydescription.md)
- [info](corefoundation/cfsocketcontext/info.md)
- [release](corefoundation/cfsocketcontext/release.md)
- [retain](corefoundation/cfsocketcontext/retain.md)
- [version](corefoundation/cfsocketcontext/version.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Data Types

- [CFSocketNativeHandle](corefoundation/cfsocketnativehandle.md)
- [CFSocketSignature](corefoundation/cfsocketsignature.md)
