Important: The information in this document is obsolete and should not be used for new development.
EDelMulti
TheEDelMultifunction decrements the counter kept by the hardware device driver for a particular multicast address for Ethernet or FDDI or a particular functional address for token ring.
FUNCTION EDelMulti (thePBptr: EParamBlkPtr; async: Boolean): OSErr;
thePBptr- A pointer to a parameter block of type
EParamBlock.async- A Boolean value that specifies whether the function should be
executed asynchronously or synchronously. SpecifyTRUEfor asynchronous execution.
--> ioCompletion ProcPtr A pointer to completion routine. <-- ioResult OSErr The result code. --> ioRefNum Integer The driver reference number. --> csCode Integer Always ENetDelMultifor
this function.--> eMultiAddr 6-byte array A multicast address.
Field Description
eMultiAddr- The multicast address that you no longer want to use.
DESCRIPTION
Each time a client of either the Ethernet or FDDI hardware device driver calls theEAddMultifunction, the driver increments a counter for the multicast address specified by theeMultiAddrparameter. Each time a client of either the Ethernet or FDDI hardware device driver calls theEDelMultifunction, the driver decrements the counter for the address specified by theeMultiAddrparameter.As long as the count for a multicast address is equal to or greater than 1, the hardware device driver accepts packets directed to that multicast address. When the count for an address equals 0, the driver removes that address from the list of multicast addresses that it accepts. For token ring, the same process applies to functional addresses.
SPECIAL CONSIDERATIONS
Because more than one client of the .ENET driver might be using a particular multicast address, you should call theEDelMultifunction only once for each time you called theEAddMultifunction.TOKEN RING AND FDDI CONSIDERATIONS
If your application added a multicast address for FDDI, you use this function to delete the address when you no longer need it. If your application added a functional address for token ring, use this function to delete the address when you no longer need it. Functional addresses are the token ring equivalent of Ethernet and FDDI multicast addresses. Be careful not to use the broadcast address as either a multicast or a functional address. (For information on all three types of addresses, see Inside AppleTalk, second edition.)ASSEMBLY-LANGUAGE INFORMATION
To execute theEDelMultifunction from assembly language, call the_Control
trap macro with a value ofENetDelMultiin thecsCodefield of the parameter
block. To execute the_Controltrap asynchronously, include the value,ASYNCin
the operand field.RESULT CODES
noErr 0 No error eMultiErr -91 Address not found