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
10
bool
GameCubeNetwork::isUp
()
11
{
12
return
net_gethostip() > 0;
13
}
14
15
bool
GameCubeNetwork::ensureUp
()
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
}
GameCubeNetwork::isUp
static bool isUp()
Non-blocking: true if the console currently has a usable IP.
Definition
GameCubeNetwork.cpp:10
GameCubeNetwork::ensureUp
static bool ensureUp()
Brings the network interface up if it isn't already, or confirms it's still alive if it is.
Definition
GameCubeNetwork.cpp:15
source
drivers
ogc
gamecube
GameCubeNetwork.cpp
Generated by
1.13.2