Important: The information in this document is obsolete and should not be used for new development.
CloseOpenTransport
Unregisters your application or code resource connection to Open Transport.C INTERFACE
void CloseOpenTransport(void);C++ INTERFACE
None. C++ applications use the C interface to this function.DISCUSSION
TheCloseOpenTransportfunction tells Open Transport that your application or code resource has finished using it. You can call this function only at system task time. You must not call this function if you have any outstanding network I/O in progress, such as an outstanding asynchronous operation.When your application finishes using Open Transport, you have the option of using this function to unload Open Transport without stopping execution if your application has other tasks to perform that do not require Open Transport. If you are writing an application, you are not required to use this function, but it is strongly recommended that you do so.
If you are writing a code resource, a CFM code fragment, or a shared library, you must call the
CloseOpenTransportfunction before unloading from memory.System software cannot unload the Open Transport kernel until the last software module on your computer that called the
InitOpenTransportfunction has also called theCloseOpenTransportfunction.SPECIAL CONSIDERATIONS
If your client uses the Apple Shared Library Manager, be sure you call theCleanupLibraryManagerfunction after calling theCloseOpenTransportfunction.SEE ALSO
TheInitOpenTransportfunction.The
InitOpenTransportUtilitiesfunction."Getting Started With Open Transport" in Networking With Open Transport.