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 20 - Initializing and Closing Open Transport Reference / Functions
Initializing and Closing Open Transport /


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
The CloseOpenTransport 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 the CloseOpenTransport function.

SPECIAL CONSIDERATIONS
If your client uses the Apple Shared Library Manager, be sure you call the CleanupLibraryManager function after calling the CloseOpenTransport function.

SEE ALSO
The InitOpenTransport function.

The InitOpenTransportUtilities function.

"Getting Started With Open Transport" in Networking With Open Transport.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998