Wii network bring-up (asynchronous net_init_async on a background thread). More...
#include <WiiNetwork.h>
Static Public Member Functions | |
| static bool | ensureUp (bool(*cancel)(void)=nullptr) |
| Brings the network interface up if it isn't already, or confirms it's still alive if it is. | |
| static bool | isUp () |
| Non-blocking: true if the console currently has a usable IP. | |
| static void | notifyWhenUp (void(*callback)()) |
| Registers callback to run exactly once. | |
| static void | shutdown () |
| Stops and joins the background bring-up thread. | |
Wii network bring-up (asynchronous net_init_async on a background thread).
Definition at line 16 of file WiiNetwork.h.
|
static |
Brings the network interface up if it isn't already, or confirms it's still alive if it is.
Blocks ~10s until the console has a usable IP or bring-up is given up on.
| cancel | optional; polled while waiting, and the wait is abandoned (returning false) as soon as it returns true. Lets a UI abort the ~10s wait. |
Definition at line 143 of file WiiNetwork.cpp.
|
static |
Non-blocking: true if the console currently has a usable IP.
Definition at line 138 of file WiiNetwork.cpp.
|
static |
Registers callback to run exactly once.
Definition at line 188 of file WiiNetwork.cpp.
|
static |
Stops and joins the background bring-up thread.
Definition at line 202 of file WiiNetwork.cpp.