The AppleTalk Information Structure
You use the AppleTalk information structure to obtain information about the current AppleTalk environment for the node on which your application is running. The AppleTalk information structure is defined by the AppleTalkInfo data type.
struct AppleTalkInfo {
DDPAddress fOurAddress;
DDPAddress fRouterAddress;
UInt16 fCableRange[2];
UInt16 fFlags;
};
Field Description
fOurAddress
- The network number and node ID of your node.
fRouterAddress
- The network number and node ID of the closest router on your network.
fCableRange
- A two-element array indicating the first and last network numbers for the current extended network to which the machine is connected. For nonextended networks, this returns the name of the zone.
Flags
- A set of flag bits that describe the network:
| | Flag | Value | Description |
| kATalkInfoIsExtended | 0x0001 | The current network is an extended network. |
| kATalkInfoHasRouter | 0x0002 | There is a router on the same network as this machine. |
| kATalkInfoOneZone | 0x0004 | This network has only one zone. |
SEE ALSO
Use the OTATalkGetInfo function to obtain the AppleTalkInfo data.