25#ifndef SFML_IPADDRESS_HPP
26#define SFML_IPADDRESS_HPP
78 IPAddress(Uint8 Byte0, Uint8 Byte1, Uint8 Byte2, Uint8 Byte3);
IPAddress provides easy manipulation of IP v4 addresses.
IPAddress(const char *Address)
Construct the address from a C-style string ; Needed for implicit conversions from literal strings to...
IPAddress(Uint8 Byte0, Uint8 Byte1, Uint8 Byte2, Uint8 Byte3)
Construct the address from 4 bytes.
static IPAddress GetLocalAddress()
Get the computer's local IP address (from the LAN point of view).
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 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.
IPAddress(Uint32 Address)
Construct the address from a 32-bits integer.
IPAddress(const std::string &Address)
Construct the address from a string.
std::string ToString() const
Get a string representation of the address.
bool IsValid() const
Tell if the address is a valid one.
std::ostream & operator<<(std::ostream &Stream, const IPAddress &Address)
Operator << overload to print an address to an output stream.
std::istream & operator>>(std::istream &Stream, IPAddress &Address)
Operator >> overload to extract an address from an input stream.