Internet Connection: Constants

Definitions


#include <dwc.h>


enum DWCInetResult {
    DWC_CONNECTINET_STATE_NOT_INITIALIZED   =  0,
    DWC_CONNECTINET_STATE_IDLE,
    DWC_CONNECTINET_STATE_OPERATING,
    DWC_CONNECTINET_STATE_OPERATED,
    DWC_CONNECTINET_STATE_CONNECTED,
    DWC_CONNECTINET_STATE_DISCONNECTING,
    DWC_CONNECTINET_STATE_DISCONNECTED,
    DWC_CONNECTINET_STATE_ERROR,
    DWC_CONNECTINET_STATE_FATAL_ERROR,
    DWC_CONNECTINET_STATE_LAST,
};

enum DWCInetAuthType {
    DWC_CONNECTINET_AUTH_TEST,
    DWC_CONNECTINET_AUTH_DEVELOP,
    DWC_CONNECTINET_AUTH_RELEASE,
    DWC_CONNECTINET_AUTH_LAST,
};

enum DWCApInfoArea {
    DWC_APINFO_AREA_JPN                     =  0,
    DWC_APINFO_AREA_USA,
    DWC_APINFO_AREA_EUR,
    DWC_APINFO_AREA_AUS,
    DWC_APINFO_AREA_KOR,
    DWC_APINFO_AREA_UNKNOWN                 =  0xff,
};

enum DWCApInfoType {
    DWC_APINFO_TYPE_USER0                   =  0,
    DWC_APINFO_TYPE_USER1,
    DWC_APINFO_TYPE_USER2,
    DWC_APINFO_TYPE_USB,
    DWC_APINFO_TYPE_SHOP,
    DWC_APINFO_TYPE_FREESPOT,
    DWC_APINFO_TYPE_WAYPORT,
    DWC_APINFO_TYPE_OTHER,
    DWC_APINFO_TYPE_NINTENDOWFC             =  DWC_APINFO_TYPE_OTHER,
    DWC_APINFO_TYPE_NINTENDOZONE,
    DWC_APINFO_TYPE_USER3                   =  0x0a,
    DWC_APINFO_TYPE_USER4,
    DWC_APINFO_TYPE_USER5,
    DWC_APINFO_TYPE_UNKNOWN                 =  99,
};

enum DWCApInfoSecurity {
    DWC_APINFO_WSEC_NONE                    =  0x00,
    DWC_APINFO_WSEC_WEPMODE_40,
    DWC_APINFO_WSEC_WEPMODE_104,
    DWC_APINFO_WSEC_WEPMODE_128,
    DWC_APINFO_WSEC_WPA_PSK_TKIP,
    DWC_APINFO_WSEC_WPA2_PSK_TKIP,
    DWC_APINFO_WSEC_WPA_PSK_AES,
    DWC_APINFO_WSEC_WPA2_PSK_AES,
};

enum DWCTestInetResult {
    DWC_TESTINET_NOT_INITIALIZED            =  0,
    DWC_TESTINET_OPERATING,
    DWC_TESTINET_CONNECTED,
    DWC_TESTINET_DISCONNECTED,
};

enum DWCProxyAuthType {
    DWC_PROXY_AUTHTYPE_NONE                 =  0x00,
    DWC_PROXY_AUTHTYPE_BASIC,
};

		

Internet Connection Status

DWC_CONNECTINET_STATE_NOT_INITIALIZED Not initialized
DWC_CONNECTINET_STATE_IDLE The connection has not started
DWC_CONNECTINET_STATE_OPERATING Currently processing
DWC_CONNECTINET_STATE_OPERATED Processing completed
DWC_CONNECTINET_STATE_CONNECTED Connected to the Internet
DWC_CONNECTINET_STATE_DISCONNECTING Disconnecting from the Internet
DWC_CONNECTINET_STATE_DISCONNECTED Disconnected from the Internet
DWC_CONNECTINET_STATE_ERROR An error occurred
DWC_CONNECTINET_STATE_FATAL_ERROR A fatal error occurred
DWC_CONNECTINET_STATE_LAST

Authentication Server Type

DWC_CONNECTINET_AUTH_TEST Authentication Server for Development
DWC_CONNECTINET_AUTH_DEVELOP Authentication Server for Library Development (do not use)
DWC_CONNECTINET_AUTH_RELEASE Authentication Server for Production
DWC_CONNECTINET_AUTH_LAST

Revision History

5.2 PR1
Fixed the descriptions of DWC_CONNECTINET_AUTH_DEVELOP and DWC_CONNECTINET_AUTH_RELEASE because they had errors.

Area Code Indicating the Local Area for Nintendo Wi-Fi Station or NintendoZone

DWC_APINFO_AREA_JPN Japan
DWC_APINFO_AREA_USA North America
DWC_APINFO_AREA_EUR Europe
DWC_APINFO_AREA_AUS Australia
DWC_APINFO_AREA_KOR Korea
DWC_APINFO_AREA_UNKNOWN Unknown (not a Nintendo Wi-Fi Station or NintendoZone)

AP Type

DWC_APINFO_TYPE_USER0 The access point for connection target 1.
DWC_APINFO_TYPE_USER1 The access point for connection target 2.
DWC_APINFO_TYPE_USER2 The access point for connection target 3.
DWC_APINFO_TYPE_USB Nintendo Wi-Fi USB Connector.
DWC_APINFO_TYPE_SHOP Nintendo Wi-Fi Station.
DWC_APINFO_TYPE_FREESPOT A FREESPOT hotspot.
DWC_APINFO_TYPE_WAYPORT Wayport (North American hotspot).
Note: Currently cannot be used.
DWC_APINFO_TYPE_OTHER (Old definition)
DWC_APINFO_TYPE_NINTENDOWFC (Reserved)
DWC_APINFO_TYPE_NINTENDOZONE NintendoZone
DWC_APINFO_TYPE_USER3 Access point for connection target 4.
Note: Not defined in NITRO ROMs.
DWC_APINFO_TYPE_USER4 Access point for connection target 5.
Note: Not defined in NITRO ROMs.
DWC_APINFO_TYPE_USER5 Access point for connection target 6.
Note: Not defined in NITRO ROMs.
DWC_APINFO_TYPE_UNKNOWN Unknown

Revision History

5.1
Added that Wayports (North American hotspots) cannot currently be used.

Wireless Security Type

DWC_APINFO_WSEC_NONE No encryption.
DWC_APINFO_WSEC_WEPMODE_40 RC4 (40-bit) encryption mode.
DWC_APINFO_WSEC_WEPMODE_104 RC4 (104-bit) encryption mode.
DWC_APINFO_WSEC_WEPMODE_128 RC4 (128-bit) encryption mode.
DWC_APINFO_WSEC_WPA_PSK_TKIP WPA-PSK (TKIP) encryption.
Note: Not defined in NITRO ROMs.
DWC_APINFO_WSEC_WPA2_PSK_TKIP WPA2-PSK (TKIP) encryption.
Note: Not defined in NITRO ROMs.
DWC_APINFO_WSEC_WPA_PSK_AES WPA-PSK (AES) encryption.
Note: Not defined in NITRO ROMs.
DWC_APINFO_WSEC_WPA2_PSK_AES WPA2-PSK (AES) encryption.
Note: Not defined in NITRO ROMs.

Communication Process Result of Internet Connection Test

DWC_TESTINET_NOT_INITIALIZED The DWC_TestInetAsync function has not been called
DWC_TESTINET_OPERATING Currently executing communication process
DWC_TESTINET_CONNECTED Connected to Internet
DWC_TESTINET_DISCONNECTED Not connected to Internet

Proxy Authentication Format

DWC_PROXY_AUTHTYPE_NONE No authentication
DWC_PROXY_AUTHTYPE_BASIC Basic authentication

CONFIDENTIAL