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 /
Chapter 2 - AppleTalk Utilities / AppleTalk Utilities Reference
Routines / Getting the Addresses of Your Node and Local Internet Router


GetNodeAddress

The GetNodeAddress function returns the current node ID and network number of the node on which the calling program is running.

FUNCTION GetNodeAddress (VAR myNode,myNet: Integer): OSErr; 
myNode
The node ID of the node on which your application or process is running.
myNet
The network number of the network to which the node is attached that is running your application or process. If myNet returns 0, this means that there is no internet router available. However, your application or process should call GetBridgeAddress to determine if there are router-like services available to that node.
DESCRIPTION
The GetNodeAddress function returns the address of a node on a network. If the network is not an extended network, the network number that GetNodeAddress returns is 0. Note that even if GetNodeAddress returns a network number of 0, there may be a router service on the local network. For example, a node can be on a network whose network number is 0 and be connected to a remote network through Apple Remote Access (ARA).

If the .MPP driver is not installed, the GetNodeAddress function returns a function result of noMPPErr. To install the .MPP driver, open it using the Device Manager's OpenDriver function or the MPPOpen function.

ASSEMBLY-LANGUAGE INFORMATION
This function is implemented in the MPW glue code only. It is not accessible from assembly language.

RESULT CODES
noErr0No error
noMPPErr-3102The .MPP driver is not installed

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996