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 25 - Option Management Reference / Functions
Finding Options /


OTFindOption

Finds a specific option in an options buffer.

C INTERFACE
TOption* OTFindOption (UInt8* buffer, UInt32 buflen, 
                                         OTXTILevel level, OTXTIName name);
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
buffer
A pointer to the buffer containing the options.
buflen
The size of the buffer containing the options.
level
The protocol of the option to be found.
name
The name of the option to be found.
function result
The beginning address of the option found, or nil if it is not found.
DISCUSSION
Given a buffer such as might be returned by the OTOptionManagement function, you can use the OTFindOption function to find a specific option in the buffer.

SEE ALSO
The OTNextOption function (described next).

The OTCreateOptionString function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998