Function

CFSocketIsValid(_:)

Returns a Boolean value that indicates whether a CFSocket object is valid and able to send or receive messages.

Declaration

func CFSocketIsValid(_ s: CFSocket!) -> Bool

Parameters

s

The CFSocket object to examine.

Return Value

true if s can be used for communication, otherwise false.

See Also

Using Sockets

func CFSocketGetTypeID() -> CFTypeID

Returns the type identifier for the CFSocket opaque type.

func CFSocketInvalidate(CFSocket!)

Invalidates a CFSocket object, stopping it from sending or receiving any more messages.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software