| Mac OS X header: | Carbon/Carbon.h |
| Mac OS 9 header: | URLAccess.h |
| Getting Data Transfer Information Functions | |
| URLGetError | Determines the error code of a failed data transfer operation. |
| URLGetCurrentState | Determines the status of a data transfer operation. |
| URLGetFileInfo | Obtains the file type and creator of a file. |
| URLIdle | Gives the URL Access Manager time to refill its buffers during download operations. |
URLGetError |
| Carbon status: | Supported |
Determines the error code of a failed data transfer operation.
OSStatus URLGetError (
URLReference urlRef,
OSStatus *urlError
);
A reference to the URL whose data transfer operation failed.
A pointer to a C string representing the name of the error code returned by the failed operation.
A result code.
The URLGetError function determines the error code returned when a data transfer operation fails. The error code may be a system error code, a protocol-specific error code, or one of the error codes listed in URL Access Result Codes.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
URLGetCurrentState |
| Carbon status: | Supported |
Determines the status of a data transfer operation.
OSStatus URLGetCurrentState (
URLReference urlRef,
URLState *state
);
A reference to the URL whose data transfer state you want to determine.
On return, a pointer to the state of data transfer. See Data Transfer State Constants for a description of possible values.
A result code.
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.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
URLGetFileInfo |
| Carbon status: | Supported |
Obtains the file type and creator of a file.
OSStatus URLGetFileInfo (
StringPtr fName,
OSType *fType,
OSType *fCreator
);
A pointer to a Pascal string representing the name of the file for which you want information.
On return, a pointer to the file type code of the specified filename.
On return, a pointer to the file creator code of the specified filename.
A result code.
The URLGetFileInfo function obtains the file type and creator codes for a specified filename. The type and creator codes are determined by the Internet configuration mapping table and are based on the filename extension. For example, if you pass the filename jane.txt, URLGetFileInfo will return 'TEXT' in the type parameter and 'ttxt' in the creator parameter.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
URLIdle |
| Carbon status: | Supported |
Gives the URL Access Manager time to refill its buffers during download operations.
OSStatus URLIdle ();
A result code.
The URLIdle function gives the URL Access Manager time to refill its buffers during download operations. You should call URLIdle periodically after you call the function URLOpen to allow time for the URL Access Manager to refill its buffers.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2001 Apple Computer, Inc. (Last Updated July 21, 2001)