ImFusion SDK 4.3
IPAddress Class Reference

#include <ImFusion/Stream/Network/NetworkConnectionsUtils.h>

A class for handling and validating IPv4 addresses. More...

Detailed Description

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::stringget () const
 
void set (const std::string &ip)
 

Constructor & Destructor Documentation

◆ IPAddress()

IPAddress ( const std::string & ip)
explicit

Construct an IPAddress object with the given IP address.

Parameters
ipThe IP address string to initialize with. Can be an IPv4 address or "localhost". Logs an error if the IP is invalid.

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close