The TRegisterReply Structure
You use theTRegisterReplystructure to store information returned by theOTRegisterNamefunction.The
TRegisterReplystructure is defined by theTRegisterReplydata type.
struct TRegisterReply { TNetbuf addr; OTNameID nameid; }; typedef struct TRegisterReply TRegisterReply;Field descriptions
addr- A
TNetbufstructure that specifies the location and size of a buffer containing the actual address of the entity whose name you have just registered. This information is passed back to you when theOTRegisterNamefunction returns. You must allocate a buffer, set theaddr.buffield to point to it, and set theaddr.maxlenfield to the size of the buffer.nameid- A unique identifier passed to you when the
OTRegisterNamefunction returns. You can use this identifier when you call theOTDeleteNameByIDfunction to delete the name.