2020-05-08 14:45:27 +00:00
|
|
|
/**
|
|
|
|
* A helper class for general IP String actions
|
|
|
|
*
|
|
|
|
* @author Lukas Heiligenbrunner
|
|
|
|
* @date 07.05.2020
|
|
|
|
*/
|
2020-05-07 12:54:40 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class IpHelper {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* check if ip is valid
|
|
|
|
* @param ip ip address to test
|
|
|
|
* @return validity
|
|
|
|
*/
|
2021-02-01 17:33:36 +00:00
|
|
|
static bool isIpValid(const std::string& ip);
|
2020-05-07 12:54:40 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
};
|