The TLookupReply Structure
You use theTLookupReplystructure to store information passed back to you by theOTLookupNamefunction (page 4-25). The information includes both a pointer to a buffer that contains registered entity names matching the criterion specified with theTLookupRequeststructure and the number of names found.The
TLookupReplystructure is defined by theTLookupReplydata type.
struct TLookupReply { TNetbuf names; UInt32 rspcount; }; typedef struct TLookupReply TLookupReply;Field descriptions
names- A
TNetbufstructure that specifies the size and location of a buffer into which theOTLookupNamefunction, on return, places the names it has found. You must allocate a buffer in which the replies are stored when the function returns; you must set thenames.buffield to point to it; and you must set thenames.maxlenfield to the maximum size of the buffer.rspcount- A long specifying the number of names found.