#include <revolution/ncd.h>
/* Structure storing the network interface configuration */
typedef struct NCDIfConfig
{
u8 selectedMedia; /* NCD_IF_SELECT_* */
u8 linkTimeout;
union
{
NCDWiredProfile wired;
NCDWirelessProfile wireless;
} netif;
} NCDIfConfig;
This structure stores the network interface configuration.
Set selectedMedia to one of the following constants to specify which network interface to use for the network connection:
#define NCD_IF_SELECT_NONE 0x00 // no network connection
#define NCD_IF_SELECT_WIRELESS 0x01 // use the Wi-Fi module
#define NCD_IF_SELECT_WIRED 0x02 // Use the Wii LAN adapter (Ethernet)
Furthermore, the appropriate structure, either wired or wireless, is used for network interface settings based on the value set in selectedMedia.
Set the timeout value of the interface setup (in seconds) in linkTimeout. When 0 is specified, the default value of 30 seconds is used.
None.
2007/03/01 Fixed typographical errors.
2006/08/14 Added information about linkTimeout.
2006/08/09 Initial version.
CONFIDENTIAL