libnick 2024.10.0
A cross-platform base for native Nickvision applications.
|
A monitor of the system's network connection. More...
#include <networkmonitor.h>
Public Member Functions | |
NetworkMonitor () | |
Constructs a NetworkMonitor. This method will call checkConnectionState() to get the initial system network state. | |
~NetworkMonitor () | |
Destructs a NetworkMonitor. | |
Events::Event< NetworkStateChangedEventArgs > & | stateChanged () |
Gets the StateChanged event. This event is invoked whenever the state of the network connection changes. | |
NetworkState | getConnectionState () const |
Gets the state of the network connection. | |
A monitor of the system's network connection.
Nickvision::Network::NetworkMonitor::NetworkMonitor | ( | ) |
Constructs a NetworkMonitor. This method will call checkConnectionState() to get the initial system network state.
std::runtime_error | Thrown if unable to create the NetworkMonitor |
Nickvision::Network::NetworkMonitor::~NetworkMonitor | ( | ) |
Destructs a NetworkMonitor.
NetworkState Nickvision::Network::NetworkMonitor::getConnectionState | ( | ) | const |
Gets the state of the network connection.
Events::Event< NetworkStateChangedEventArgs > & Nickvision::Network::NetworkMonitor::stateChanged | ( | ) |
Gets the StateChanged event. This event is invoked whenever the state of the network connection changes.