ns3::Inet6SocketAddress Class Reference

An Inet6 address class. More...

#include <inet6-socket-address.h>

Collaboration diagram for ns3::Inet6SocketAddress:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

An Inet6 address class.

Definition at line 34 of file inet6-socket-address.h.


Constructor & Destructor Documentation

ns3::Inet6SocketAddress::Inet6SocketAddress ( Ipv6Address  ipv6,
uint16_t  port 
)

Constructor.

Parameters:
ipv6 the IPv6 address
port the port

Definition at line 24 of file inet6-socket-address.cc.

ns3::Inet6SocketAddress::Inet6SocketAddress ( Ipv6Address  ipv6  ) 

Constructor (the port is set to zero).

Parameters:
ipv6 the IPv6 address

Definition at line 30 of file inet6-socket-address.cc.

ns3::Inet6SocketAddress::Inet6SocketAddress ( uint16_t  port  ) 

Constructor (the address is set to "any").

Parameters:
port the port

Definition at line 48 of file inet6-socket-address.cc.

ns3::Inet6SocketAddress::Inet6SocketAddress ( const char *  ipv6,
uint16_t  port 
)

Constructor.

Parameters:
ipv6 string which represents an IPv6 address
port the port

Definition at line 36 of file inet6-socket-address.cc.

ns3::Inet6SocketAddress::Inet6SocketAddress ( const char *  ipv6  ) 

Constructor.

Parameters:
ipv6 string which represents an IPv6 address

Definition at line 42 of file inet6-socket-address.cc.


Member Function Documentation

Inet6SocketAddress ns3::Inet6SocketAddress::ConvertFrom ( const Address addr  )  [static]

Convert the address to a InetSocketAddress.

Parameters:
addr the address to convert
Returns:
an Inet6SocketAddress instance corresponding to address

Definition at line 93 of file inet6-socket-address.cc.

Address ns3::Inet6SocketAddress::ConvertTo ( void   )  const [private]

Convert to Address.

Returns:
Address instance

Definition at line 84 of file inet6-socket-address.cc.

Ipv6Address ns3::Inet6SocketAddress::GetIpv6 ( void   )  const

Get the IPv6 address.

Returns:
the IPv6 address

Definition at line 64 of file inet6-socket-address.cc.

uint16_t ns3::Inet6SocketAddress::GetPort ( void   )  const

Get the port.

Returns:
the port

Definition at line 54 of file inet6-socket-address.cc.

uint8_t ns3::Inet6SocketAddress::GetType ( void   )  [static, private]

Get the type.

Returns:
the type of Inet6SocketAddress

Definition at line 103 of file inet6-socket-address.cc.

bool ns3::Inet6SocketAddress::IsMatchingType ( const Address addr  )  [static]

If the address match.

Parameters:
addr the address to test
Returns:
true if the address match, false otherwise

Definition at line 74 of file inet6-socket-address.cc.

ns3::Inet6SocketAddress::operator Address ( void   )  const

Get an Address instance which represents this Inet6SocketAddress instance.

Definition at line 79 of file inet6-socket-address.cc.

void ns3::Inet6SocketAddress::SetIpv6 ( Ipv6Address  ipv6  ) 

Set the IPv6 address.

Parameters:
ipv6 the address

Definition at line 69 of file inet6-socket-address.cc.

void ns3::Inet6SocketAddress::SetPort ( uint16_t  port  ) 

Set the port.

Parameters:
port the port

Definition at line 59 of file inet6-socket-address.cc.


Member Data Documentation

The IPv6 address.

Definition at line 129 of file inet6-socket-address.h.

uint16_t ns3::Inet6SocketAddress::m_port [private]

The port.

Definition at line 134 of file inet6-socket-address.h.


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:12:01 2009 for NS-3 by  doxygen 1.6.3