Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
detect lost internet connection via a hook
#2
(04-06-2022, 08:30 AM)Ahmed Sayed Wrote: For example, I want the program to detect if I removed the Ethernet cable or turned off the WiFi on the laptop, and when I reconnect the Ethernet cable or turn WiFi on it should detect that too.

That is outside of Indy's scope. There is no cross-platform way to accomplish what you are asking for. You need to resort to platform-specific APIs. For instance, the Network List Manager API on Windows, the ConnectivityManager API on Android, etc.

Reply


Messages In This Thread
RE: detect lost internet connection via a hook - by rlebeau - 04-06-2022, 04:55 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)