Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
runtime_network.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <string>
9#include <string_view>
10#include <vector>
11
12namespace network {
13
19 bool ready;
21 std::string summary;
22 std::string ipAddress;
23 std::string subnetMask;
24 std::string gateway;
25 };
26
33
40
47
54 std::string describe_runtime_network_initialization_code(int initializationCode);
55
62 std::vector<std::string> format_runtime_network_status_lines(const RuntimeNetworkStatus &status);
63
64} // namespace network
const RuntimeNetworkStatus & runtime_network_status()
Return the last cached runtime network status.
Definition runtime_network.cpp:116
RuntimeNetworkStatus initialize_runtime_networking()
Initialize runtime networking and cache the resulting status.
Definition runtime_network.cpp:88
std::vector< std::string > format_runtime_network_status_lines(const RuntimeNetworkStatus &status)
Format status lines for shell display.
Definition runtime_network.cpp:65
bool runtime_network_ready()
Return whether runtime networking is ready for host communication.
Definition runtime_network.cpp:121
std::string describe_runtime_network_initialization_code(int initializationCode)
Convert a platform-specific initialization code into readable text.
Definition runtime_network.cpp:52
Summary of runtime network initialization and the active IPv4 configuration.
Definition runtime_network.h:17
bool ready
True when networking is initialized and ready for use.
Definition runtime_network.h:19
int initializationCode
Platform-specific status code returned by initialization.
Definition runtime_network.h:20
std::string ipAddress
Active IPv4 address.
Definition runtime_network.h:22
std::string subnetMask
Active IPv4 subnet mask.
Definition runtime_network.h:23
std::string gateway
Active IPv4 default gateway.
Definition runtime_network.h:24
bool initializationAttempted
True after network initialization has been attempted.
Definition runtime_network.h:18
std::string summary
User-visible summary of the current network state.
Definition runtime_network.h:21