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
TheCloseOpenTransport
function 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
CloseOpenTransport
function before unloading from memory.System software cannot unload the Open Transport kernel until the last software module on your computer that called the
InitOpenTransport
function has also called theCloseOpenTransport
function.SPECIAL CONSIDERATIONS
If your client uses the Apple Shared Library Manager, be sure you call theCleanupLibraryManager
function after calling theCloseOpenTransport
function.SEE ALSO
TheInitOpenTransport
function.The
InitOpenTransportUtilities
function."Getting Started With Open Transport" in Networking With Open Transport.