Loading...
Searching...
No Matches
IpAddress.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
IpAddress(Uint8 byte0, Uint8 byte1, Uint8 byte2, Uint8 byte3)
Construct the address from 4 bytes.
static const IpAddress LocalHost
The "localhost" address (for connecting a computer to itself locally)
Definition IpAddress.hpp:186
static IpAddress getPublicAddress(Time timeout=Time::Zero)
Get the computer's public address.
static const IpAddress Broadcast
The "broadcast" address (for sending UDP messages to everyone on a local network)
Definition IpAddress.hpp:187
Definition AlResource.hpp:35
bool operator==(const IpAddress &left, const IpAddress &right)
Overload of == operator to compare two IP addresses.
bool operator>=(const IpAddress &left, const IpAddress &right)
Overload of >= operator to compare two IP addresses.
std::istream & operator>>(std::istream &stream, IpAddress &address)
Overload of >> operator to extract an IP address from an input stream.
bool operator!=(const IpAddress &left, const IpAddress &right)
Overload of != operator to compare two IP addresses.
bool operator<=(const IpAddress &left, const IpAddress &right)
Overload of <= operator to compare two IP addresses.
std::ostream & operator<<(std::ostream &stream, const IpAddress &address)
Overload of << operator to print an IP address to an output stream.
bool operator<(const IpAddress &left, const IpAddress &right)
Overload of < operator to compare two IP addresses.
bool operator>(const IpAddress &left, const IpAddress &right)
Overload of > operator to compare two IP addresses.