Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 21 - Providers Reference / Functions
Controlling a Provider's Modes of Operation /


OTSetAsynchronous

Sets a provider to asynchronous mode.

C INTERFACE
OSStatus OTSetAsynchronous(ProviderRef ref);
C++ INTERFACE
OSStatus TProvider::SetAsynchronous();
PARAMETERS
ref
The provider reference of the provider which you want to set to asynchronous mode..
function result
An error code. See Appendix B for more information.
DISCUSSION
The OTSetAsynchronous function causes all functions for the provider specified in the ref parameter to run asynchronously. You should install a notifier function for the provider to receive completion and other events. You can install a notifier function either before or after calling the OTSetAsynchronous function.

You can call this function at any time and it will always succeed.

To set a provider to synchronous mode, call the OTSetSynchronous function. To find out a provider's current setting, call the OTIsSynchronous function.

SEE ALSO
"Specifying How Provider Functions Execute".

"Using Notifier Functions".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998