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 23 - Programming With Open Transport Reference / Data Types


Callback Function

You can use the OTProcessProcPtr prototype to declare a callback routine. You can then pass this routine as a parameter to the Open Transport functions used to create a system, timer, or a deferred task. 4The routine defines the routine that you want Open Transport to execute at that time. The routine takes one argument, which contains user-defined context information.

typedef pascal void (*OTProcessProcPtr)(void* arg);
For information about creating your own callback routine, see the description of the function MyOTProcessProc. An OTProcessProcPtr is never a Universal Proc Pointer.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998