Your Callback Function
You can define a callback function that NetSprocket will call for various asynchronous events. You do not need to define a callback function unless you plan to use certain advanced features of NetSprocket.
typedef pascal void (*NSpCallbackProcPtr) ( NSpGameReference inGame, void *inContext, NSpEventCode inCode, OSStatus inStatus, void* inCookie);
inGame- An opaque reference to the game object making the callback.
inContext- A pointer that you passed in to the installation function.
inCode- A value describing what kind of event is being passed to your generic callback function when the callback is made.
inStatus- A status code containing
noErr, a NetSprocket error, or an Open Transport error.inCookie- A pointer that may be
NULLor point to certain extra data for certain kinds of events.DESCRIPTION
NetSprocket 1.0 does not make any generic asynchronous callbacks.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help