ns-3
ns3::Inet6SocketAddress Class Reference

An Inet6 address class. More...

#include <inet6-socket-address.h>

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.

Detailed Description

An Inet6 address class.


Constructor & Destructor Documentation

Constructor.

Parameters:
ipv6the IPv6 address
portthe port

Referenced by ConvertFrom().

Constructor (the port is set to zero).

Parameters:
ipv6the IPv6 address

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

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

Constructor.

Parameters:
ipv6string which represents an IPv6 address
portthe port

Constructor.

Parameters:
ipv6string which represents an IPv6 address

Member Function Documentation

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

Get the port.

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

If the address match.

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

References ns3::Address::CheckCompatible().

Referenced by ns3::Ipv6RawSocketImpl::Bind(), ns3::Ipv6RawSocketImpl::Connect(), and ns3::Ipv6RawSocketImpl::SendTo().

Set the IPv6 address.

Parameters:
ipv6the address
void ns3::Inet6SocketAddress::SetPort ( uint16_t  port)

Set the port.

Parameters:
portthe port

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