Is there a way to check the internet connection status in C++?

I’d like to be able to check the internet connection status in c++. I found the ConnectionStatusChanged delegate in OnlineSubsystem, but it only fires when the connection status changes, so there isn’t anyway for me to see at all times if the game as an internet connection.