I'm writing a C# code and running it on a Mac machine using Mono 5.12
framework.
I'm doing upload in the code, the problem I need to check the internet connectivity before doing the upload, there is a DLL on windows that gives you the internet connection status but I don't think I can use it on Mac
[System.Runtime.InteropServices.DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState(out int Description, int ReservedValue);
obviously since its a dll i can't use it in Mac, is there any relevant dylib that i can use in Mac OS which gives the same results, or any wrapper for the "wininet.dll"