Important: The information in this document is obsolete and should not be used for new development.
The TRegisterRequest Structure
You use theTRegisterRequest
structure to specify the entity name you want to register using theOTRegisterName
function and, optionally, to specify its address.The
TRegisterRequest
structure is defined by theTRegisterRequest
data type.
struct TRegisterRequest { TNetbufname; TNetbufaddr; OTFlags flags; }; typedef struct TRegisterRequest TRegisterRequest;Field descriptions
name
- A
TNetbuf
structure 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.buf
field to point to that buffer, and set thename.len
field to the length of the buffer.
addr
- A
TNetbuf
structure 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.buf
field to point to that buffer, and set theaddr.len
field to the length of the buffer. The actual address with which the entity is associated is returned in theaddr
field of theTRegisterReply
structure.
- You can set the
addr.len
field 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.