- Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
- Chapter 21 - Providers Reference / Functions
- Opening and Closing Providers /
OTWhoAmI
Returns the current client's ID.
C INTERFACE
OTClient OTWhoAmI(void);
C++ INTERFACE
None. C++ applications use the C interface to this function.
PARAMETERS
- function result
- A 32-bit value specifying the client ID.
DISCUSSION
In transferring provider ownership from an old client to a new client, the old client must obtain its own current client ID (by calling the OTWhoAmI function) and must use some means to communicate this value to the new client. The new client then uses this value as the prevOwner parameter to the OTTransferProviderOwnership function that it calls to gain ownership of the provider.
SEE ALSO
The OTTransferProviderOwnership function.
© Apple Computer, Inc.
15 JAN 1998