refs #883, added utility function ping

This commit is contained in:
Klaus Basan
2017-02-16 16:30:52 +01:00
committed by Mathew Sutcliffe
parent 1619a5ceb3
commit 92100c85f7
2 changed files with 32 additions and 14 deletions

View File

@@ -54,6 +54,10 @@ namespace BlackMisc
//! \param withDebugOutput enables some debugging output
static bool hasConnectedInterface(bool withDebugOutput = false);
//! Can ping the address?
//! \note uses OS ping
static bool canPing(const QString &hostAddress);
//! Can connect?
//! \param hostAddress 130.4.20.3, or myserver.com
//! \param port 80, 1234