NETGetStartupErrorCode

C Specification

#include <revolution/net.h>

s32 NETGetStartupErrorCode( s32 soErr );

Arguments

soErr The return value from the SOStartup function.

Return Values

A five-digit error code to be displayed to the user, corresponding the error value returned by the SOStartup function.

Description

This function converts the error value returned by the SOStartup function to a five-digit error code that can be displayed to the user. The NETGetStartupErrorCode function determines the type of network interface currently in use internally, and stores the appropriate interface type as the last two digits of the error code.

Interface TypesSOStartup Error ValuesConverted Error Codes
all typesa non-error value >= 0NET_ECODE_OK00000
all typesSO_EFATALNET_ECODE_STARTUP_FAILED50100
all typesSO_ENOENTNET_ECODE_NO_ENABLED_CONFIG50200
all typesSO_EINVALNET_ECODE_INVALID_CONFIG50300
Wii LAN adapter (Ethernet)SO_ENXIONET_ECODE_DEVICE_NOT_EXISTS504xx
wirelessSO_ERR_LINK_UP_TIMEOUTNET_ECODE_AP_NOT_FOUND510xx
Wii LAN adapter (Ethernet)SO_ERR_LINK_UP_TIMEOUTNET_ECODE_WIRED_LINK_UP_FAILED514xx
wirelessSO_ERR_LINK_DOWNNET_ECODE_WIRELESS_LINK_UP_FAILED513xx
Wii LAN adapter (Ethernet)SO_ERR_LINK_DOWNNET_ECODE_WIRED_LINK_UP_FAILED514xx
wirelessSO_ENOLINKNET_ECODE_WIRELESS_LINK_UP_FAILED513xx
Wii LAN adapter (Ethernet)SO_ENOLINKNET_ECODE_WIRED_LINK_UP_FAILED514xx
wirelessSO_ETIMEDOUTNET_ECODE_WIRELESS_LINK_UP_FAILED513xx
Wii LAN adapter (Ethernet)SO_ETIMEDOUTNET_ECODE_WIRED_LINK_UP_FAILED514xx
wirelessSO_ENETRESETNET_ECODE_WIRELESS_LINK_UP_FAILED513xx
Wii LAN adapter (Ethernet)SO_ENETRESETNET_ECODE_WIRED_LINK_UP_FAILED514xx
all typesSO_ERR_DHCP_TIMEOUTNET_ECODE_DHCP_FAILED520xx
all typesSO_ERR_DHCP_EXPIREDNET_ECODE_DHCP_FAILED520xx
all typesSO_ERR_DHCP_NAKNET_ECODE_DHCP_FAILED520xx
all typesSO_ERR_ADDR_COLLISIONNET_ECODE_ADDR_COLLISION527xx
all typesall othersNET_ECODE_STARTUP_FAILED50100
Interface TypesInterface Type ValuesComments
Wii LAN adapter (Ethernet)20~22The last digit corresponds to the the number of the connection target setting
wireless connection other than via the Nintendo Wi-Fi USB Connector30~32The last digit corresponds to the the number of the connection target setting
Nintendo Wi-Fi USB Connector40~42The last digit corresponds to the the number of the connection target setting
unknown99

See Also

None.

Revision History

2007/01/30 Initial version.


CONFIDENTIAL