25 #ifndef CPP3DS_IPADDRESS_HPP
26 #define CPP3DS_IPADDRESS_HPP
31 #include <cpp3ds/System/Time.hpp>
93 IpAddress(Uint8 byte0, Uint8 byte1, Uint8 byte2, Uint8 byte3);
270 std::istream& operator >>(std::istream& stream,
IpAddress& address);
281 std::ostream& operator <<(std::ostream& stream,
const IpAddress& address);
286 #endif // CPP3DS_IPADDRESS_HPP
Encapsulate an IPv4 network address.
Uint32 toInteger() const
Get an integer representation of the address.
static const IpAddress None
Value representing an empty/invalid address.
std::string toString() const
Get a string representation of the address.
static const IpAddress Broadcast
The "broadcast" address (for sending UDP messages to everyone on a local network) ...
IpAddress()
Default constructor.
static const IpAddress LocalHost
The "localhost" address (for connecting a computer to itself locally)
static IpAddress getPublicAddress(Time timeout=Time::Zero)
Get the computer's public address.
static IpAddress getLocalAddress()
Get the computer's local address.
static const Time Zero
Predefined "zero" time value.