Important: The information in this document is obsolete and should not be used for new development.
OTDeleteNameByID
Removes a previously registered name as specified by its name ID.C INTERFACE
OSStatus OTDeleteNameByID (MapperRef ref, OTNameID nameID);C++ INTERFACE
TMapper::DeleteName(OTNameID nameID);PARAMETERS
ref- A mapper reference.
id- The name ID, a 32-bit value specifying a number that identifies the registered name.
- function result
- An error code. See Appendix B for more information.
DISCUSSION
If the mapper protocol defined using theconfigparameter to theOTOpenMapperorOTAsyncOpenMapperfunctions supports dynamic name and address registration, you can use theOTDeleteNameByIDfunction to delete a registered name.If the mapper is in synchronous mode, the function does not return until the operation is complete. If the mapper is in asynchronous mode, the
OTDeleteNameByIDfunction returns immediately. When the operation completes execution, the mapper provider calls the notifier function, passingT_DELNAMECOMPLETEfor thecodeparameter, and thenameIDparameter in thecookieparameter. For more information on notifier functions and event codes see "Using Notifier Functions" and "Event Codes".The name ID that you delete using the
OTDeleteNameByIDfunction is returned in thereplyparameter to theOTRegisterNamefunction.