![]() |
Data Transfer State Constants |
Header: URLAccess.h |
Identifies the current state of a data transfer operation.
enum URLState { kURLNullState = , kURLInitiatingState = 1, kURLLookingUpHostState = 2, kURLConnectingState = 3, kURLResourceFoundState = 4, kURLDownloadingState = 5, kURLDataAvailableState = 21, kURLTransactionCompleteState = 6, kURLErrorOccurredState = 7, kURLAbortingState = 8, kURLCompletedState = 9, kURLUploadingState = 10 };
Indicates that the function
Indicates that the function
Indicates that the function
Indicates that the function
Indicates that the location specified by the URL reference has been accessed and is valid. The stream enters this state from the kURLConnectingState state.
Indicates that the download operation is in progress but there is currently no data in the buffers. The stream enters this state initially from the kURLResourceFoundState state. During a download operation, the streams state may alternate between the kURLDownloadingState and the kURLDataAvailableState states.
Indicates that the download operation is in progress and data is available in the buffers. The stream initially enters this state from the kURLDownloadingState state. During a download operation, the streams state may alternate between the kURLDownloadingState and the kURLDataAvailableState states. If the stream is in the data available state, you may want to call the function URLOpen
, you will need to call the function
Indicates that a download or upload operation is complete. The stream can enter this state from the kURLDownloadingState state.
Indicates that an error occurred during data transfer. The stream can enter this state from any state except the kURLAbortingState state. If the stream is in this state, you may wish to call the function
Indicates that a download or upload operation is aborting. The stream enters this state from the kURLErrorOccurredState state or as a result of calling the function URLAbort
, the URL Access Manager changes the state returned by the function
Indicates that there is no more activity to be performed on this stream. In this case, the data transfer has either completed successfully or been aborted. The stream enters this state from the kURLTransactionCompleteState or the kURLAbortingState state. When data transfer is terminated after a data transfer operation is aborted, the URL Access Manager changes the state returned by
Indicates that an upload operation is in progress.
The URLState enumeration defines constants that identify the status of a data transfer operation with respect to a URL. The function URLGetCurrentState passes back one of these constants in the state parameter to indicate the status of a data transfer operation. All constants except kURLDataAvailableState and kURLCompletedState can be returned at any time. If you pass a valid file specification in the fileSpec parameter of the function URLOpen, your notification callback function will not be notified of data available and transaction completed states as identified by the constants kURLDataAvailableState and kURLTransactionCompleteState.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)