Contents

CFSocketGetNative(_:)

Returns the native socket associated with a CFSocket object.

Declaration

func CFSocketGetNative(_ s: CFSocket!) -> CFSocketNativeHandle

Parameters

  • s:

    The CFSocket object to examine.

Return Value

The native socket associated with s. If s has been invalidated, returns -1, INVALID_SOCKET.

See Also

Configuring Sockets