Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 24 - Mappers Reference / Constants and Data Types


The TLookupBuffer Structure

The TLookupBuffer structure defines the format of entries in the buffer passed back in the reply parameter of the OTLookupName function. When you parse the buffer in which the OTLookupName function places the names it has found, you can cast it as a TLookupBuffer structure. Figure 6-1 shows the structure of the reply buffer.

The TLookupBuffer structure is defined by the TLookupBuffer data type.

struct TLookupBuffer
{  
   UInt16   fAddressLength;
   UInt16   fNameLength;
   UInt8    fAddressBuffer[1];
};
typedef struct TLookupBuffer TLookupBuffer;
Field descriptions

fAddressLength
Specifies the size of the address specified by the fAddressBuffer field.
fNameLength
Specifies the size of the name that is stored in the buffer following the fAddressBuffer field.
fAddressBuffer
the first byte of the address to which the entity whose name follows (in the buffer) is bound.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998