include <nitroWiFi/soc.h>
#define SOC_VENDOR_NINTENDO 0x0000 // Nintendo TCP/IP stack
#define SOC_VERSION 0x0100 // Version 1.0
typedef struct SOCConfig
{
u16 vendor; // SOC_VENDOR_NINTENDO
u16 version; // SOC_VERSION
//
// vendor specific section
//
:
:
:
} SOCConfig;
int SOC_Startup ( const SOCConfig* config ); config |
Pointer to the SOCConfig structure. |
| 0 | Successful. |
| -1 | Memory allocation failed. |
Note: Additional errors may be generated and returned in future library releases. Treat all negative return values as general errors.
This function initializes the library's socket layer. Before calling this function, initialize the SOCConfig parameters to meet the library vendor's specifications.
2005/09/13 Initial version.
CONFIDENTIAL