1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<TITLE>NCDProxyProfile</TITLE>
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8</HEAD>
9<BODY>
10<H1>NCDProxyProfile</H1>
11
12<H2>C Specification</H2>
13<DL>
14  <DD><PRE><CODE>#include &lt;revolution/ncd.h&gt;</CODE></PRE>
15  <DD><PRE><CODE>#define     NCD_PROXYNAME_LENGTH            256
16#define     NCD_PROXY_USERNAME_LENGTH       33
17#define     NCD_PROXY_PASSWORD_LENGTH       33
18#define     NCD_NO_PROXY_LENGTH             1024
19#define     NCD_AUTOMATIC_PROXY_LENGTH      256
20
21/* structure for storing the proxy server configuration */
22typedef struct NCDProxyServerProfile
23{
24    u8      mode;                           /* Proxy type NCD_PROXY_MODE_* */
25    u8      authType;                       /* Proxy authentication type NCD_PROXY_AUTHTYPE_* */
26    u8      reserved[ 2 ];
27    s8      server[ NCD_PROXYNAME_LENGTH ]; /* the proxy server name */
28    u16     port;                           /* the proxy port number */
29    s8      username[ NCD_PROXY_USERNAME_LENGTH ];  /* the proxy authentication user name */
30    s8      password[ NCD_PROXY_PASSWORD_LENGTH ];  /* the proxy authentication password */
31
32} ATTRIBUTE_PACKED NCDProxyServerProfile;
33
34/* the proxy settings structure */
35typedef struct NCDProxyProfile
36{
37    NCDProxyServerProfile   http;   /* HTTP proxy server settings */
38    NCDProxyServerProfile   http;   /* SSL (HTTPS) proxy server settings */
39
40/* Unused region below */
41    struct
42    {
43    u32     isEnabled;                      /* indicates whether this setting value is enabled */
44    s8      servers[ NCD_NO_PROXY_LENGTH ]; /* list of blank delimiters for server names with no proxy connection */
45
46    } noProxy;
47
48    struct
49    {
50        u32     isEnabled1_1;
51        u32     isAutomaticEnabled;
52        s8      automatic[ NCD_AUTOMATIC_PROXY_LENGTH ];
53
54    } browser;
55
56} ATTRIBUTE_PACKED NCDProxyProfile;
57</CODE></PRE>
58</DL>
59
60<H2>Description</H2>
61<P>
62This structure stores HTTP/HTTPS proxy settings.<BR>The values set for <CODE>NCDProxyServerProfile.http</CODE> and <CODE>NCDProxyServerProfile.ssl</CODE> 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.
63</P>
64<P>
65<CODE>NCDProxyServerProfile.mode</CODE> can take the following values.
66</P>
67<P>
68<PRE><CODE>typedef enum
69{
70    NCD_PROXY_MODE_NONE                =    0x00,  /* Do not use proxy */
71    NCD_PROXY_MODE_NORMAL              =    0x01,  /* Normal proxy */
72} NCDProxyMode;
73</CODE></PRE>
74</P>
75
76<P>
77<CODE>NCDProxyServerProfile.authType</CODE> can take the following values.
78</P>
79<P>
80<PRE><CODE>typedef enum
81{
82    NCD_PROXY_AUTHTYPE_NONE            =    0x00,  /* No authentication */
83    NCD_PROXY_AUTHTYPE_BASIC           =    0x01   /* Basic authentication */
84} NCDProxyAuthType;
85</CODE></PRE>
86</P>
87
88<P>Although area is reserved for use of <CODE>NCDProxyServerProfile.noProxy</CODE> and <CODE>NCDProxyServerProfile.browser</CODE> in the future, they are not currently referenced. </P>
89
90<H2>See Also</H2>
91<P>
92None.
93</P>
94
95<H2>Revision History</H2>
96<P>
972006/09/02 Changed the contents of the NCDProxyServerProfile structure.<BR> 2006/08/21 Added the NCDProxyServerProfile structure.<BR> 2006/08/16 Changed the structure.<BR>2006/08/09 Initial version.
98</P>
99
100<hr><p>CONFIDENTIAL</p></body>
101</HTML>