The TRegisterRequest Structure
You use theTRegisterRequeststructure to specify the entity name you want to register using theOTRegisterNamefunction (page 4-21) and, optionally, to specify its address.The
TRegisterRequeststructure is defined by theTRegisterRequestdata type.
struct TRegisterRequest { TNetbufname; TNetbufaddr; }; 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 name.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 address. 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.