libktorrent  2.1.1
Public Member Functions | List of all members
net::Address Class Reference

#include <address.h>

Inheritance diagram for net::Address:
Inheritance graph
[legend]

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.
 
Addressoperator= (const net::Address &other)
 Assignment operator.
 
Addressoperator= (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.
 

Detailed Description

Author
Joris Guisson joris.nosp@m..gui.nosp@m.sson@.nosp@m.gmai.nosp@m.l.com

Network address, contains an IP address and a port number. This supports both IPv4 and IPv6 addresses.

Definition at line 58 of file address.h.


The documentation for this class was generated from the following file: