Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
runtime_network.cpp File Reference

Implements runtime network status management. More...

#include "src/network/runtime_network.h"
#include <lwip/ip4_addr.h>
#include <lwip/netif.h>
#include <nxdk/net.h>
Include dependency graph for runtime_network.cpp:

Functions

std::string network::describe_runtime_network_initialization_code (int initializationCode)
 Convert a platform-specific initialization code into readable text.
 
std::vector< std::string > network::format_runtime_network_status_lines (const RuntimeNetworkStatus &status)
 Format status lines for shell display.
 
RuntimeNetworkStatus network::initialize_runtime_networking ()
 Initialize runtime networking and cache the resulting status.
 
bool network::runtime_network_ready ()
 Return whether runtime networking is ready for host communication.
 
const RuntimeNetworkStatusnetwork::runtime_network_status ()
 Return the last cached runtime network status.
 

Variables

struct netif * g_pnetif
 nxdk-provided pointer to the active lwIP network interface.
 

Detailed Description

Implements runtime network status management.

Function Documentation

◆ describe_runtime_network_initialization_code()

std::string network::describe_runtime_network_initialization_code ( int initializationCode)

Convert a platform-specific initialization code into readable text.

Parameters
initializationCodePlatform-specific initialization code.
Returns
Human-readable description of the code.

◆ format_runtime_network_status_lines()

std::vector< std::string > network::format_runtime_network_status_lines ( const RuntimeNetworkStatus & status)

Format status lines for shell display.

Parameters
statusRuntime network status to format.
Returns
Display-ready text lines describing the status.

◆ initialize_runtime_networking()

RuntimeNetworkStatus network::initialize_runtime_networking ( )

Initialize runtime networking and cache the resulting status.

Returns
Captured runtime network status after initialization.

◆ runtime_network_ready()

bool network::runtime_network_ready ( )

Return whether runtime networking is ready for host communication.

Returns
true when networking is initialized successfully.

◆ runtime_network_status()

const RuntimeNetworkStatus & network::runtime_network_status ( )

Return the last cached runtime network status.

Returns
Cached runtime network status.