#include <dwc.h>DWCTestInetResult DWC_TestInternetConnection(int timeout,
BOOL proxy);| timeout | Timeout interval of the connection test (in milliseconds). The default timeout interval of 3000 milliseconds is applied when a value equal to or less than 0 is specified. The test cannot be conducted normally if the timeout interval is too short. |
| proxy | Set to TRUE when proxy settings are used. |
Result of the connection test. All values other than DWC_TESTINET_SUCCEEDED indicate failure.
The function does not return processing until the connection test's communication is done.
This function communicates with
Connectivity is determined by specific fields included in the response header from conntest.nintendowifi.net. As a result, when the test is performed using a proxy server, the content of the response header will be different and therefore will sometimes be treated as a failure.
A proxy server will use the value obtained with the NCDGetCurrentIpConfig function.
Because this function performs communications with the connection test server, do not call it repeatedly over a short period of time.
The duration set for the timeout argument specifies the timeout for waiting for a response from the connection test server. Thus, if you include the time required to complete initialization for communication, the actual time taken for control to return from the function may be longer than the time specified in the timeout argument.
CONFIDENTIAL