Important: The information in this document is obsolete and should not be used for new development.
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 theOTOptionManagement
function, you can use theOTFindOption
function to find a specific option in the buffer.SEE ALSO
TheOTNextOption
function (described next).The
OTCreateOptionString
function.