Important: The information in this document is obsolete and should not be used for new development.
OTOpenMapper
Creates a synchronous mapper provider and returns a mapper reference.C INTERFACE
MapperRef OTOpenMapper(OTConfiguration* config, OTOpenFlags oflag, OSErr* err);C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
config- A pointer to a configuration structure that specifies the mapper's characteristics. You obtain a value for the
configparameter by calling theOTCreateConfigurationfunction. TheOTOpenMapperfunction disposes of the configuration structure before returning.oflag- Reserved; must be set to 0.
err- A pointer to the result code for this function.
- function result
- A reference that you can use when calling other mapper functions.
DISCUSSION
TheOTOpenMapperfunction opens a mapper having the configuration specified by theconfigparameter. For additional informationon Mappers and configurations see "Getting Started With Open Transport" and the documentation provided for the mapper protocol you are using. The function returns a mapper reference, by which you refer to the created mapper when calling mapper functions. If theOTOpenMapperfunction fails, its return value iskOTInvalidMapperRef.A mapper created by the
OTOpenMapperfunction operates in synchronous mode, and does not block. To change the mapper's default modes of operation, you can call theOTSetAsynchronousand theOTSetBlockingfunction.You can open multiple mappers using identical or different configurations. The different mappers can be distinguished by the mapper reference.
To delete a mapper, call the
OTCloseProviderfunction. For additional information about a mapper's mode of operations, see "Setting Modes of Operation for Mappers".SPECIAL CONSIDERATIONS
Because theOTOpenMapperfunction executes synchronously, you should only call this function at system task time.The
OTOpenMapperfunction destroys the configuration structure passed in theconfigparameter. If you want to use the same configuration to open additional mappers, you must copy the configuration structure by calling theOTCloneConfigurationfunction.SEE ALSO
TheOTAsyncOpenMapperfunction .The
OTSetAsynchronousfunction.The
OTSetBlockingfunction.