GetRunLoopSource

Gets a CFRunLoopSource for the CFMachPort used for notifications from the kernel that data is ready.

Declaration

CFRunLoopSourceRef ( *GetRunLoopSource)(
   IOStreamRef stream );

Parameters

stream

The IOStreamRef of the stream to operate on.

Return Value

The CFRunLoopSourceRef for the run loop source, or NULL if there was an error creating the source.

See Also

Run loop operations

AddToRunLoop

Add the CFRunLoopSource for the notification port to a run loop.

RemoveFromRunLoop

Remove the CFRunLoopSource for the notification port from a run loop.