![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Stream/Network/NetworkConnectionsUtils.h>
A class for handling and validating IPv4 addresses. More...
A class for handling and validating IPv4 addresses.
The IPAddress class provides functionality to store, validate, and resolve IPv4 addresses. It supports direct IP address input and hostname resolution (specifically for "localhost").
Public Member Functions | |
| IPAddress (const std::string &ip) | |
| Construct an IPAddress object with the given IP address. | |
| const std::string & | get () const |
| void | set (const std::string &ip) |
|
explicit |
Construct an IPAddress object with the given IP address.
| ip | The IP address string to initialize with. Can be an IPv4 address or "localhost". Logs an error if the IP is invalid. |