NCDProxyProfile

C Specification

#include <revolution/ncd.h>
#define     NCD_PROXYNAME_LENGTH            256
#define     NCD_PROXY_USERNAME_LENGTH       33
#define     NCD_PROXY_PASSWORD_LENGTH       33
#define     NCD_NO_PROXY_LENGTH             1024
#define     NCD_AUTOMATIC_PROXY_LENGTH      256

/* structure for storing the proxy server configuration */
typedef struct NCDProxyServerProfile
{
    u8      mode;                           /* Proxy type NCD_PROXY_MODE_* */
    u8      authType;                       /* Proxy authentication type NCD_PROXY_AUTHTYPE_* */
    u8      reserved[ 2 ];
    s8      server[ NCD_PROXYNAME_LENGTH ]; /* the proxy server name */
    u16     port;                           /* the proxy port number */
    s8      username[ NCD_PROXY_USERNAME_LENGTH ];  /* the proxy authentication user name */
    s8      password[ NCD_PROXY_PASSWORD_LENGTH ];  /* the proxy authentication password */

} ATTRIBUTE_PACKED NCDProxyServerProfile;

/* the proxy settings structure */
typedef struct NCDProxyProfile
{
    NCDProxyServerProfile   http;   /* HTTP proxy server settings */
    NCDProxyServerProfile   http;   /* SSL (HTTPS) proxy server settings */

/* Unused region below */
    struct
    {
    u32     isEnabled;                      /* indicates whether this setting value is enabled */
    s8      servers[ NCD_NO_PROXY_LENGTH ]; /* list of blank delimiters for server names with no proxy connection */
    
    } noProxy;

    struct
    {
        u32     isEnabled1_1;
        u32     isAutomaticEnabled;
        s8      automatic[ NCD_AUTOMATIC_PROXY_LENGTH ];
    
    } browser;

} ATTRIBUTE_PACKED NCDProxyProfile;

Description

This structure stores HTTP/HTTPS proxy settings.
The values set for NCDProxyServerProfile.http and NCDProxyServerProfile.ssl are referenced internally when applications starting with the WiiConnect24 service perform an HTTP/HTTPS connection. Note that other independent settings are maintained for Internet browser software that allow users to freely access any URL. Proxy server settings for the proxy-type contents filtering service must be maintained as independent proxy settings for browser software without being set here.

NCDProxyServerProfile.mode can take the following values.

typedef enum
{
    NCD_PROXY_MODE_NONE                =    0x00,  /* Do not use proxy */
    NCD_PROXY_MODE_NORMAL              =    0x01,  /* Normal proxy */
} NCDProxyMode;

NCDProxyServerProfile.authType can take the following values.

typedef enum
{
    NCD_PROXY_AUTHTYPE_NONE            =    0x00,  /* No authentication */
    NCD_PROXY_AUTHTYPE_BASIC           =    0x01   /* Basic authentication */
} NCDProxyAuthType;

Although area is reserved for use of NCDProxyServerProfile.noProxy and NCDProxyServerProfile.browser in the future, they are not currently referenced.

See Also

None.

Revision History

2006/09/02 Changed the contents of the NCDProxyServerProfile structure.
2006/08/21 Added the NCDProxyServerProfile structure.
2006/08/16 Changed the structure.
2006/08/09 Initial version.


CONFIDENTIAL