Carbon


URLGetCurrentState

Header: URLAccess.h Carbon status: Supported

Determines the status of a data transfer operation.

OSStatus URLGetCurrentState (
    URLReference urlRef, 
    URLState *state
);
Parameter descriptions
urlRef

A reference to the URL whose data transfer state you want to determine.

state

On return, a pointer to the state of data transfer. See “Data Transfer State Constants” for a description of possible values.

function result

A result code.

DISCUSSION

The URLGetCurrentState function determines the current status of a data transfer operation. You may wish to call URLGetCurrentState periodically to monitor the status of a download or upload operation.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)