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

Declares runtime network status management. More...

#include <string>
#include <string_view>
#include <vector>
Include dependency graph for runtime_network.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  network::RuntimeNetworkStatus
 Summary of runtime network initialization and the active IPv4 configuration. More...
 

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.
 

Detailed Description

Declares 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.