25 #ifndef SFML_IPADDRESS_HPP
26 #define SFML_IPADDRESS_HPP
31 #include <SFML/Network/Export.hpp>
32 #include <SFML/System/Time.hpp>
94 IpAddress(Uint8 byte0, Uint8 byte1, Uint8 byte2, Uint8 byte3);
123 std::string toString()
const;
139 Uint32 toInteger()
const;
191 friend SFML_NETWORK_API
bool operator <(
const IpAddress& left,
const IpAddress& right);
199 void resolve(
const std::string& address);
283 SFML_NETWORK_API std::istream& operator >>(std::istream& stream,
IpAddress& address);
294 SFML_NETWORK_API std::ostream& operator <<(std::ostream& stream,
const IpAddress& address);
299 #endif // SFML_IPADDRESS_HPP
Encapsulate an IPv4 network address.
static const IpAddress None
Value representing an empty/invalid address.
static const IpAddress LocalHost
The "localhost" address (for connecting a computer to itself locally)
static const Time Zero
Predefined "zero" time value.
static const IpAddress Broadcast
The "broadcast" address (for sending UDP messages to everyone on a local network) ...
static const IpAddress Any
Value representing any address (0.0.0.0)