OTATalkGetInfo
Obtains information about the AppleTalk environment for a given node.C INTERFACE
OSStatus OTATalkGetInfo(ATSvcRef ref, TNetbuf* info);C++ INTERFACE
TAppleTalkServices::GetInfo(TNetbuf* info);PPARAMETERS
ref- The reference value of your AppleTalk service provider.
info- A pointer to a
TNetbufstructure that you use to get information about your current AppleTalk environment.DESCRIPTION
TheOTATalkGetInfofunction returns the information contained in theAppleTalkInfodata structure that describes your current AppleTalk environment. This includes your network number and node ID, the network number and node ID of a local router, and the current network range for the extended network to which the machine is connected.If you execute this function asynchronously, Open Transport calls your notifier with a
T_GETATALKINFOCOMPLETEcompletion event to signal the function's completion and uses your notifier'scookieparameter for the AppleTalk information. Thecookieparameter actually holds a pointer to aTNetbufstructure, which points in turn to a buffer containing theAppleTalkInfostructure. The maximum size of this buffer is 22 bytes.If the machine is multihomed--that is, if multiple network numbers and node numbers are associated with the same machine--the
OTATalkGetInfofunction returns information about the node whose network number and node ID are selected in the AppleTalk control panel.COMPLETION EVENT CODES
T_GETATALKINFOCOMPLETE0x23010004 The OTATalkGetInfofunction
has completed.SEE ALSO
TheAppleTalkInfodata structure is described in the section "Constants and Data Types" (page 11-9).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help