Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
NetSprocket Functions / Initializing NetSprocket


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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996