Important: The information in this document is obsolete and should not be used for new development.
EDelMulti
TheEDelMulti
function 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. SpecifyTRUE
for asynchronous execution.
--> ioCompletion ProcPtr A pointer to completion routine. <-- ioResult OSErr The result code. --> ioRefNum Integer The driver reference number. --> csCode Integer Always ENetDelMulti
for
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 theEAddMulti
function, the driver increments a counter for the multicast address specified by theeMultiAddr
parameter. Each time a client of either the Ethernet or FDDI hardware device driver calls theEDelMulti
function, the driver decrements the counter for the address specified by theeMultiAddr
parameter.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 theEDelMulti
function only once for each time you called theEAddMulti
function.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 theEDelMulti
function from assembly language, call the_Control
trap macro with a value ofENetDelMulti
in thecsCode
field of the parameter
block. To execute the_Control
trap asynchronously, include the value,ASYNC
in
the operand field.RESULT CODES
noErr 0 No error eMultiErr -91 Address not found