25#ifndef SFML_IPADDRESS_HPP
26#define SFML_IPADDRESS_HPP
31#include <SFML/Config.hpp>
78 IPAddress(Uint8 Byte0, Uint8 Byte1, Uint8 Byte2, Uint8 Byte3);
141 bool operator ==(
const IPAddress& Other)
const;
151 bool operator !=(
const IPAddress& Other)
const;
161 bool operator <(
const IPAddress& Other)
const;
171 bool operator >(
const IPAddress& Other)
const;
181 bool operator <=(
const IPAddress& Other)
const;
191 bool operator >=(
const IPAddress& Other)
const;
215SFML_API std::istream& operator >>(std::istream& Stream,
IPAddress& Address);
226SFML_API std::ostream& operator <<(std::ostream& Stream,
const IPAddress& Address);
IPAddress provides easy manipulation of IP v4 addresses.
static const IPAddress LocalHost
Local host address (to connect to the same computer).
Uint32 ToInteger() const
Get an integer representation of the address.
static IPAddress GetLocalAddress()
Get the computer's local IP address (from the LAN point of view).
static IPAddress GetPublicAddress(float Timeout=0.f)
Get the computer's public IP address (from the web point of view).
IPAddress()
Default constructor – constructs an invalid address.
std::string ToString() const
Get a string representation of the address.
bool IsValid() const
Tell if the address is a valid one.