#include <inet6-socket-address.h>
Public Member Functions | |
Inet6SocketAddress (Ipv6Address ipv6, uint16_t port) | |
Constructor. | |
Inet6SocketAddress (Ipv6Address ipv6) | |
Constructor (the port is set to zero). | |
Inet6SocketAddress (uint16_t port) | |
Constructor (the address is set to "any"). | |
Inet6SocketAddress (const char *ipv6, uint16_t port) | |
Constructor. | |
Inet6SocketAddress (const char *ipv6) | |
Constructor. | |
uint16_t | GetPort (void) const |
Get the port. | |
void | SetPort (uint16_t port) |
Set the port. | |
Ipv6Address | GetIpv6 (void) const |
Get the IPv6 address. | |
void | SetIpv6 (Ipv6Address ipv6) |
Set the IPv6 address. | |
operator Address (void) const | |
Get an Address instance which represents this Inet6SocketAddress instance. | |
Static Public Member Functions | |
static bool | IsMatchingType (const Address &addr) |
If the address match. | |
static Inet6SocketAddress | ConvertFrom (const Address &addr) |
Convert the address to a InetSocketAddress. | |
Private Member Functions | |
Address | ConvertTo (void) const |
Convert to Address. | |
Static Private Member Functions | |
static uint8_t | GetType (void) |
Get the type. | |
Private Attributes | |
Ipv6Address | m_ipv6 |
The IPv6 address. | |
uint16_t | m_port |
The port. |
ns3::Inet6SocketAddress::Inet6SocketAddress | ( | Ipv6Address | ipv6, | |
uint16_t | port | |||
) |
Constructor.
ipv6 | the IPv6 address | |
port | the port |
ns3::Inet6SocketAddress::Inet6SocketAddress | ( | Ipv6Address | ipv6 | ) |
Constructor (the port is set to zero).
ipv6 | the IPv6 address |
ns3::Inet6SocketAddress::Inet6SocketAddress | ( | uint16_t | port | ) |
Constructor (the address is set to "any").
port | the port |
ns3::Inet6SocketAddress::Inet6SocketAddress | ( | const char * | ipv6, | |
uint16_t | port | |||
) |
Constructor.
ipv6 | string which represents an IPv6 address | |
port | the port |
ns3::Inet6SocketAddress::Inet6SocketAddress | ( | const char * | ipv6 | ) |
Constructor.
ipv6 | string which represents an IPv6 address |
static Inet6SocketAddress ns3::Inet6SocketAddress::ConvertFrom | ( | const Address & | addr | ) | [static] |
Convert the address to a InetSocketAddress.
addr | the address to convert |
Address ns3::Inet6SocketAddress::ConvertTo | ( | void | ) | const [private] |
Ipv6Address ns3::Inet6SocketAddress::GetIpv6 | ( | void | ) | const |
Get the IPv6 address.
uint16_t ns3::Inet6SocketAddress::GetPort | ( | void | ) | const |
Get the port.
static uint8_t ns3::Inet6SocketAddress::GetType | ( | void | ) | [static, private] |
static bool ns3::Inet6SocketAddress::IsMatchingType | ( | const Address & | addr | ) | [static] |
If the address match.
addr | the address to test |
void ns3::Inet6SocketAddress::SetIpv6 | ( | Ipv6Address | ipv6 | ) |
Set the IPv6 address.
ipv6 | the address |
void ns3::Inet6SocketAddress::SetPort | ( | uint16_t | port | ) |
Set the port.
port | the port |