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
NULL
or point to certain extra data for certain kinds of events.DESCRIPTION
NetSprocket 1.0 does not make any generic asynchronous callbacks.