CFSocketCopyAddress(_:)
Returns the local address of a CFSocket object.
Declaration
func CFSocketCopyAddress(_ s: CFSocket!) -> CFData!Parameters
- s:
The CFSocket object to examine.
Return Value
The local address, stored as a struct sockaddr appropriate for the protocol family (struct sockaddr_in or struct sockaddr_in6, for example) in a CFData object, of s. Ownership follows the The Create Rule.