Important: The information in this document is obsolete and should not be used for new development.
The TRegisterRequest Structure
You use theTRegisterRequeststructure to specify the entity name you want to register using theOTRegisterNamefunction and, optionally, to specify its address.The
TRegisterRequeststructure is defined by theTRegisterRequestdata type.
struct TRegisterRequest { TNetbufname; TNetbufaddr; OTFlags flags; }; typedef struct TRegisterRequest TRegisterRequest;Field descriptions
name- A
TNetbufstructure that specifies the location and size of a buffer containing the entity name you want to register. You must allocate a buffer that contains the name, set thename.buffield to point to that buffer, and set thename.lenfield to the length of the buffer.
addr- A
TNetbufstructure that specifies the location and size of a buffer containing the address associated with the entity whose name you want to register. You must allocate a buffer that contains the address, set theaddr.buffield to point to that buffer, and set theaddr.lenfield to the length of the buffer. The actual address with which the entity is associated is returned in theaddrfield of theTRegisterReplystructure.
- You can set the
addr.lenfield to 0, in which case the underlying protocol finds an appropriate address to associate with the newly registered entity name.
flags- A field used to control registration. Normally, this field is set to 0 for default registration behavior. See the documentation for the naming service you are using for more information.