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 With Open Transport / Part 2 - Open Transport Reference
Chapter 30 - AppleTalk Reference / ATP Reference


Options

There are several ATP-specific options, which are defined as the following:

#define ATP_OPT_REPLYCNT0x2110
#define ATP_OPT_DATALEN0x2111
#define ATP_OPT_RELTIMER0x2112
#define ATP_OPT_TRANID0x2113 
The ATP_OPT_REPLYCNT option indicates the number of reply packets in the current ATP reply being received. The ATP_OPT_DATALEN option indicates a maximum data packet length if it is different from the ATP default of 578; only the PAP server uses this option. The ATP_OPT_TRANID option sets the ATP transaction ID added to every request packet.

The ATP_OPT_RELTIMER option indicates the amount of time the responder must wait for a transaction release packet before it purges a request entry from its transactions list. Acceptable values are 0 (30 seconds), 1 (1 minute), 2 (2 minutes), 3 (4 minutes), 4 (8 minutes).

In order to use any option with ATP, you must indicate which protocol the option is intended for. To do this, you use a constant for the ATP protocol in the level field of the TOption structure when you specify an option.

#define ATK_ATP   'ATP '
ATP also allows you to use the generic Open Transport options OPT_RETRYCNT and OPT_INTERVAL, which are described in "Specifying ATP Options".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998