PPC Open Port (Macintosh)

Opens a port for PPC communication and returns a port refnum. You can use a single port for multiple sessions. When opening a port using PPC Open Port, you must specify a portName cluster.

portName describes the port you want to open.
nameScript is a 32-bit integer used in international localization that indicates the language system you are using. For Roman language systems (for example, English), use a value of 0. Refer to Inside Macintosh, Volume VI for a list of available script codes.
selector describes the format of the type string parameter.

1Creator/type—Indicates that type string is an 8-character string; the first four characters are the creator (for example, LBVW), and the last four characters define the port type.
2Port type string—Indicates that type string is a 32-character (or less) description of the service provided by the port.
port type string is an eight-character string. When selector is 1, the first four characters are the creator (for example, LBVW), and the last four characters define the port type. When selector is 2, the type string is a 32-character (or less) description of the service that the port provides. In almost all cases, use 2 for selector, and use a description of the service provided by the port for type string. Refer to Inside Macintosh, Volume VI for more information about other cases.
name is the name you assign to the port. The value of name, which can be no more than 32 characters, is displayed in the PPC Browser dialog box list of port names. The Get Target ID VI uses name to identify the port.
alias location name is the alias name for the port. If empty, the VI uses the default alias PPCToolBox. The PPC Browser uses this alias to determine which machines to display in its dialog box.
network visible indicates whether the port is accessible to other machines on the network. The default is FALSE.
port refnum is a port refnum, which you use in subsequent operations relating to that port.
error, if negative, indicates a Macintosh error. If positive, error indicates an error internal to the CIN that generated it. Refer to the PPC Error Codes for a list of PPC error codes and their descriptions.