OTDeleteName
Removes a previously registered entity name.C INTERFACE
OSErr OTDeleteName (MapperRef ref, TNetbuf* name);C++ INTERFACES
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.DESCRIPTION
If the name-registration protocol defined using theconfigparameter to theOTOpenMapperorOTAsyncOpenMapperfunction supports dynamic name and address registration, you can use theOTDeleteNamefunction to delete a registered name.COMPLETION EVENT CODES
T_DELNAMECOMPLETE0x2000000 EThe OTDeleteNamefunction has completed. Thecookieparameter of the notifier function points to thenameparameter.SEE ALSO
TheOTRegisterNamefunction 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 (described next) to delete a name using this ID value than to use theOTDeleteNamefunction.For information on how to use this function with a TCP/IP protocol, see page 8-20 in the TCP/IP chapter.
You use the
OTOpenMapperfunction (page 4-19) orOTAsyncOpenMapperfunction (page 4-16) to create a mapper.