/dev/net/kd/request
From WiiBrew
KD is the IOS module responsible for implementing WiiConnect24 functionality. It can perform HTTPS downloads, send and receive mail via SMTP, and execute a JavaScript-like language while the Wii is in standby mode.
Ioctl listing
| Request number | Name | Input | Output | Notes |
|---|---|---|---|---|
| 1 | ExecSuspendScheduler | none | 4 bytes | |
| 2 | ExecTrySuspendScheduler | 32 bytes | 32 bytes | |
| 3 | ExecResumeScheduler | none | 4+ bytes | |
| 4 | ? | ? | 12+ bytes | |
| 5 | ? | ? | 4+ bytes | |
| 6 | NWC24iStartupSocket | none | 32 bytes | |
| 7 | NWC24iCleanupSocket | none | 32 bytes | |
| 8 | NWC24iLockSocket | none | 32 bytes | |
| 9 | NWC24iUnlockSocket | none | 32 bytes | |
| 0xa | NWC24iCheckMailNow | none | 32 bytes | |
| 0xb | NWC24iSendMailNow | none | 8+ bytes | Connect and send mail? |
| 0xc | NWC24iReceiveMailNow | ? | 8+ bytes | |
| 0xd | NWC24iSaveMailNow | none | 32 bytes | |
| 0xe | NWC24iDownloadNowEx | 32 bytes | 32 bytes | |
| 0xf | NWC24iRequestGenerateUserId | none | 32 bytes | |
| 0x10 | NWC24iRequestRegisterUserId | none | 32 bytes | |
| 0x1e | NWC24iGetSchedulerStat | none | none | |
| 0x1f | NWC24iSetFilterMode | 32 bytes | 32 bytes | |
| 0x20 | NWC24iSetDebugMode | 32 bytes | 32 bytes | |
| 0x21 | ? | ? | ? | |
| 0x22 | NWC24iSetScriptMode | 32 bytes | 32 bytes | |
| 0x28 (async?) | NWC24iRequestShutdown | 32 bytes | 32 bytes |

