---
title: CFSocketGetTypeID()
framework: corefoundation
role: symbol
role_heading: Function
path: corefoundation/cfsocketgettypeid()
---

# CFSocketGetTypeID()

Returns the type identifier for the CFSocket opaque type.

## Declaration

```swift
func CFSocketGetTypeID() -> CFTypeID
```

## Return Value

Return Value The type identifier for the CFSocket opaque type.

## See Also

### Using Sockets

- [CFSocketConnectToAddress(_:_:_:)](corefoundation/cfsocketconnecttoaddress(_:_:_:).md)
- [CFSocketCreateRunLoopSource(_:_:_:)](corefoundation/cfsocketcreaterunloopsource(_:_:_:).md)
- [CFSocketInvalidate(_:)](corefoundation/cfsocketinvalidate(_:).md)
- [CFSocketIsValid(_:)](corefoundation/cfsocketisvalid(_:).md)
- [CFSocketSendData(_:_:_:_:)](corefoundation/cfsocketsenddata(_:_:_:_:).md)
