Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
NetSprocket Functions / Managing Network Protocols


NSpProtocol_Create

You can use the NSpProtocol_Create function to create a new protocol reference from a definition string.

OSStatus NSpProtocol_Create (
	const char* inDefinitionString,
	NSpProtocolReference *outReference);
inDefinitionString
A string defining which protocol to use and what values to set for various configuration options.
outReference
An opaque reference to the protocol created. Valid only if the function returns noErr.
function result
A result code of noErr, or a NetSprocket or Open Transport result code.
DESCRIPTION
NetSprocket version 1.0 does not allow you to call the NSpProtocol_Create function directly. Instead, you should use the helper functions defined in this section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996