28#include <SFML/Network/IPAddress.hpp>
29#include <SFML/Network/Http.hpp>
30#include <SFML/Network/SocketHelper.hpp>
138 InAddr.s_addr = myAddress;
149 return ntohl(myAddress);
228 return myAddress ==
Other.myAddress;
237 return myAddress !=
Other.myAddress;
246 return myAddress <
Other.myAddress;
255 return myAddress >
Other.myAddress;
264 return myAddress <=
Other.myAddress;
273 return myAddress >=
Other.myAddress;
293std::ostream& operator <<(std::ostream& Stream,
const IPAddress& Address)
295 return Stream << Address.ToString();
This class wraps an HTTP request, which is basically :
@ Get
Request in get mode, standard method to retrieve a page.
This class wraps an HTTP response, which is basically :
@ Ok
Most common code returned when operation was successful.
This class provides methods for manipulating the HTTP protocol (described in RFC 1945).
IPAddress provides easy manipulation of IP v4 addresses.
bool operator>=(const IPAddress &Other) const
Comparison operator >=.
bool operator!=(const IPAddress &Other) const
Comparison operator !=.
static const IPAddress LocalHost
Local host address (to connect to the same computer)
bool operator>(const IPAddress &Other) const
Comparison operator >
Uint32 ToInteger() const
Get an integer representation of the address.
bool operator<(const IPAddress &Other) const
Comparison operator <.
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.
bool operator<=(const IPAddress &Other) const
Comparison operator <=.
bool operator==(const IPAddress &Other) const
Comparison operator ==.
std::string ToString() const
Get a string representation of the address.
bool IsValid() const
Tell if the address is a valid one.
static SocketType InvalidSocket()
Return the value of the invalid socket.
static bool Close(SocketType Socket)
Close / destroy a socket.
Vector2 is an utility class for manipulating 2 dimensional vectors.