Important: URL Access Manager is deprecated as of Mac OS X v10.4. You should use CFNetwork instead (as described in CFNetwork Programming Guide).
During a call to URLOpen, data transfer events are generated after:
URLOpen has been called but the location specified by the URL reference has not yet been accessed.
The location specified by the URL reference has been accessed and is valid.
A download operation is in progress.
A data transfer operation has been aborted.
All operations associated with a call to URLOpen have been completed.
An error occurred during data transfer.
Data is available in buffers.
A download operation is complete because there is no more data to retrieve from buffers.
An upload operation is in progress.
A system event has occurred.
The size of the data being downloaded is known.
A time interval of approximately one quarter of a second has passed.
A property such as a filename has become known or changed.
If you want to be notified of data transfer events, pass a Universal Procedure Pointer (UPP) to your notification callback function in the notifyProc parameter of URLOpen. To create a UPP to your notification callback, you must call the function NewURLNotifyUPP. You must also specify which data transfer events you want to receive as a bitmask in the eventRegister parameter of URLOpen. You can then manipulate the data or write it to the destination of your choice.
Your application’s notification callback function should process the event record passed by URL Access Manager in the event parameter and return 0. The only restriction that URL Access Manager imposes on the functionality of your notification callback function is that it should not call the function URLDisposeReference. For information on how to write a notification callback, see URLNotifyProcPtr.
Last updated: 2007-05-03