CAddressIPv6 Class Reference
[Addresses]

Inheritance diagram for CAddressIPv6:

Inheritance graph
[legend]
Collaboration diagram for CAddressIPv6:

Collaboration graph
[legend]

List of all members.


Detailed Description

An IPv6 address.


Public Types

typedef unsigned short Port

Public Member Functions

 CAddressIPv6 ()
 Creates a CAddressIPv6 object that represents the IPv6 wilcard address, i.e. in6addr_any and port 0.
 CAddressIPv6 (const CAddress &address)
 Creates a CAddressIPv6 object which is a copy of the supplied address. Note that the address family for the supplied address must be AF_INET6 or an exception will be thrown. This constructor can be used to convert the correct type of 'generic Winsock Address' back into a full IPv46 address, so, for example, you could take the remote address of a socket connection and initiate a new outgoing connection to it because you have an instance of IFullAddress.
 CAddressIPv6 (const sockaddr_in6 &address)
 Creates a CAddressIPv6 object which is a copy of the supplied address.
 CAddressIPv6 (const JetByteTools::Win32::_tstring &hexIPorName, const Port port)
 Creates a CAddressIPv6 object from the supplied address in hex ip format "ffff:ffff:ffff:ffff:ffff" and a port.
 CAddressIPv6 (const JetByteTools::Win32::_tstring &addressAsString)
 Creates a CAddressIPv6 object from the supplied address in the following string format: "[ffff:ffff:ffff:ffff:ffff]:port".
virtual Port GetPort () const
 Returns the port.
virtual const
IAddressType
Type () const
 Returns the address type for the address.
virtual IFullAddressClone () const
 Dynamically allocates a copy of this address. You are responsible for deallocating this copy with delete when you're done with it..
virtual short Family () const
 Returns the address family of the address.
virtual const sockaddr & AsSockAddr () const
 Returns the address as a reference to a sockaddr structure.
virtual int Size () const
 Returns the size of the sockaddr structure required to store the address.
virtual IAddressRefGetAddressRef () const
 Returns a reference counted view on this address, be sure to call Release() on the IAdressRef when you're done with it.


Member Typedef Documentation

typedef unsigned short Port [inherited]


Constructor & Destructor Documentation

CAddressIPv6 (  ) 

Creates a CAddressIPv6 object that represents the IPv6 wilcard address, i.e. in6addr_any and port 0.

CAddressIPv6 ( const CAddress address  )  [explicit]

Creates a CAddressIPv6 object which is a copy of the supplied address. Note that the address family for the supplied address must be AF_INET6 or an exception will be thrown. This constructor can be used to convert the correct type of 'generic Winsock Address' back into a full IPv46 address, so, for example, you could take the remote address of a socket connection and initiate a new outgoing connection to it because you have an instance of IFullAddress.

CAddressIPv6 ( const sockaddr_in6 &  address  )  [explicit]

Creates a CAddressIPv6 object which is a copy of the supplied address.

CAddressIPv6 ( const JetByteTools::Win32::_tstring hexIPorName,
const Port  port 
)

Creates a CAddressIPv6 object from the supplied address in hex ip format "ffff:ffff:ffff:ffff:ffff" and a port.

CAddressIPv6 ( const JetByteTools::Win32::_tstring addressAsString  ) 

Creates a CAddressIPv6 object from the supplied address in the following string format: "[ffff:ffff:ffff:ffff:ffff]:port".


Member Function Documentation

IIPAddress::Port GetPort (  )  const [virtual]

Returns the port.

Implements IIPAddress.

const IAddressType & Type (  )  const [virtual]

Returns the address type for the address.

Implements IFullAddress.

IFullAddress * Clone (  )  const [virtual]

Dynamically allocates a copy of this address. You are responsible for deallocating this copy with delete when you're done with it..

Implements IFullAddress.

short Family (  )  const [virtual]

Returns the address family of the address.

Implements IAddress.

const sockaddr & AsSockAddr (  )  const [virtual]

Returns the address as a reference to a sockaddr structure.

Implements IAddress.

int Size (  )  const [virtual]

Returns the size of the sockaddr structure required to store the address.

Implements IAddress.

IAddressRef * GetAddressRef (  )  const [virtual]

Returns a reference counted view on this address, be sure to call Release() on the IAdressRef when you're done with it.

Implements IAddress.


Generated on Thu Mar 26 16:39:50 2009 for JetByte Socket Tools - v6.0 by  doxygen 1.5.3