libktorrent
2.2.0
|
#include <address.h>
Public Member Functions | |
Address (const Address &addr) | |
Address (const Q_IPV6ADDR &ip6Addr, Uint16 port) | |
Address (const QHostAddress &addr, Uint16 port) | |
Address (const QString &host, Uint16 port) | |
Address (const struct sockaddr_storage *ss) | |
Address (quint32 ip4Addr, Uint16 port) | |
Address (quint8 *ip6Addr, Uint16 port) | |
Address | convertIPv4Mapped () const |
Convert an IPv4 mapped IPv6 address to an IPv4 address. | |
int | ipVersion () const |
Return the IP protocol version (4 or 6) | |
bool | isIPv4Mapped () const |
Is this a IPv4 mapped address into the IPv6 address space. | |
bool | operator< (const net::Address &other) const |
Less then operator for putting net::Address in a map. | |
Address & | operator= (const net::Address &other) |
Assignment operator. | |
Address & | operator= (const struct sockaddr_storage &ss) |
Assignment operator. | |
bool | operator== (const net::Address &other) const |
Equality operator. | |
Uint16 | port () const |
Get the port number. | |
void | setPort (Uint16 p) |
Set the port number. | |
void | toSocketAddress (struct sockaddr_storage *ss, int &length) const |
Convert to a struct sockaddr_storage. | |
Network address, contains an IP address and a port number. This supports both IPv4 and IPv6 addresses.