libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
GameCubeNetwork.cpp
1/****************************************************************************
2 * Platform Abstraction Layer (OGC driver)
3 * Daryl Borth 2026
4 * GameCubeNetwork.cpp
5 ***************************************************************************/
6#include "GameCubeNetwork.h"
7
8#include <network.h>
9
11{
12 return net_gethostip() > 0;
13}
14
16{
17 if(net_gethostip() > 0)
18 return true;
19
20 char ip[16];
21 return if_config(ip, NULL, NULL, true) >= 0 && net_gethostip() > 0;
22}
static bool isUp()
Non-blocking: true if the console currently has a usable IP.
static bool ensureUp()
Brings the network interface up if it isn't already, or confirms it's still alive if it is.