JetByteTools::Socket::IAddressRef Class Reference
[AddressesInterfacesProtected non-virtual destructors on abstract base classes]

Inherits JetByteTools::Socket::IAddress.

Inherited by JetByteTools::Socket::CAddressImpl.

Inheritance diagram for JetByteTools::Socket::IAddressRef:

Inheritance graph
[legend]
Collaboration diagram for JetByteTools::Socket::IAddressRef:

Collaboration graph
[legend]
List of all members.

Detailed Description

A reference counted IAddress.


Public Member Functions

virtual void AddRef ()=0
virtual void Release ()=0
virtual short Family () const=0
 Returns the address family of the address.
virtual const sockaddr & AsSockAddr () const=0
 Returns the address as a reference to a sockaddr structure.
virtual int Size () const=0
 Returns the size of the sockaddr structure required to store the address.
virtual IAddressRefGetAddressRef () const=0
 Returns a reference counted view on this address, be sure to call Release() on the IAdressRef when you're done with it.

Protected Member Functions

 ~IAddressRef ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Constructor & Destructor Documentation

JetByteTools::Socket::IAddressRef::~IAddressRef (  )  [inline, protected]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

virtual void JetByteTools::Socket::IAddressRef::AddRef (  )  [pure virtual]

Implemented in JetByteTools::Socket::CAddressImpl.

virtual void JetByteTools::Socket::IAddressRef::Release (  )  [pure virtual]

Implemented in JetByteTools::Socket::CAddressImpl.

virtual short JetByteTools::Socket::IAddress::Family (  )  const [pure virtual, inherited]

Returns the address family of the address.

Implemented in JetByteTools::Socket::CAddress, JetByteTools::Socket::CAddressImpl, JetByteTools::Socket::CAddressInfo::Iterator, JetByteTools::Socket::CAddressIPv4, JetByteTools::Socket::CAddressIPv6, and JetByteTools::Socket::CAddressWrapper.

virtual const sockaddr& JetByteTools::Socket::IAddress::AsSockAddr (  )  const [pure virtual, inherited]

Returns the address as a reference to a sockaddr structure.

Implemented in JetByteTools::Socket::CAddress, JetByteTools::Socket::CAddressImpl, JetByteTools::Socket::CAddressInfo::Iterator, JetByteTools::Socket::CAddressIPv4, JetByteTools::Socket::CAddressIPv6, and JetByteTools::Socket::CAddressWrapper.

virtual int JetByteTools::Socket::IAddress::Size (  )  const [pure virtual, inherited]

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

Implemented in JetByteTools::Socket::CAddress, JetByteTools::Socket::CAddressImpl, JetByteTools::Socket::CAddressInfo::Iterator, JetByteTools::Socket::CAddressIPv4, JetByteTools::Socket::CAddressIPv6, and JetByteTools::Socket::CAddressWrapper.

virtual IAddressRef* JetByteTools::Socket::IAddress::GetAddressRef (  )  const [pure virtual, inherited]

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

Implemented in JetByteTools::Socket::CAddress, JetByteTools::Socket::CAddressImpl, JetByteTools::Socket::CAddressInfo::Iterator, JetByteTools::Socket::CAddressIPv4, JetByteTools::Socket::CAddressIPv6, and JetByteTools::Socket::CAddressWrapper.


Generated on Tue May 8 17:47:59 2007 for JetByte Socket Tools by  doxygen 1.5.2