Important: The information in this document is obsolete and should not be used for new development.
OTDeleteName
Removes a previously registered entity name.C INTERFACE
OSStatus OTDeleteName (MapperRef ref, TNetbuf* name);C++ INTERFACE
TMapper::DeleteName(TNetbuf* name);PARAMETERS
ref- The mapper reference of the mapper you are using to delete the name.
name- A
TNetbufstructure describing the name to be removed. You must allocate a buffer that contains the name, set thename.buffield to point to the buffer, and set thename.lenfield to the length of the name.- function result
- If the name is not found, the function returns the result
kOTNoAddressErr.DISCUSSION
If the mapper protocol defined using theconfigparameter to theOTOpenMapperorOTAsyncOpenMapperfunctions supports dynamic name and address registration, you can use theOTDeleteNamefunction 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
OTDeleteName function returns immediately. When the operation completes execution, the provider issues theT_DELNAMECOMPLETEevent code. Thecookieparameter to the notification routine has the value of thenameparameter passed to the function. For more information on notifier functions and event codes see "Using Notifier Functions" and "Event Codes".The
OTRegisterNamefunction you used to register the name returns an ID value for the registered name in itsreplyparameter. You might find it more convenient to use theOTDeleteNameByIDfunction to delete a name using this ID value than to use theOTDeleteNamefunction.