Function

CFSocketIsValid

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

Declaration

Boolean CFSocketIsValid(CFSocketRef s);

Parameters

s

The CFSocket object to examine.

Return Value

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

See Also

Using Sockets

CFSocketConnectToAddress

Opens a connection to a remote socket.

CFSocketCreateRunLoopSource

Creates a CFRunLoopSource object for a CFSocket object.

CFSocketGetTypeID

Returns the type identifier for the CFSocket opaque type.

CFSocketInvalidate

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

CFSocketSendData

Sends data over a CFSocket object.