Important: The information in this document is obsolete and should not be used for new development.
Options
In order to use any option with DDP, you must indicate which protocol the option is intended for. To do this, you use a constant for the DDP protocol in thelevelfield of theTOptionstructure when you specify an option.
#define ATK_DDP 'DDP 'DDP has one DDP-specific option, DDP_OPT_SRCADDR, that sets the source address for outgoing packets.
#define DDP_OPT_SRCADDR0x2101A multinode endpoint must use theDDP_OPT_SRCADDRoption to specify the source address for outgoing packets on a per-packet basis. This option cannot be used with theOTOptionManagementfunction. The option's value must be a DDP address structure using theAF_ATALK_DDPaddress format. The source network number, node number, and source socket are taken from the DDP address.This option is most often used in conjuction with a multinode endpoint, but it can also be used on normal endpoints.
DDP also allows you to use the generic Open Transport options
OPT_SELFSENDandOPT_CHECKSUM, which are described in the chapter "Option Management" in this book.