#include <rtpaddress.h>
Inheritance diagram for RTPAddress:
Public Types | |
enum | AddressType { IPv4Address, IPv6Address, UserDefinedAddress } |
Identifies the actual implementation being used. More... | |
Public Member Functions | |
AddressType | GetAddressType () const |
Returns the type of address the actual implementation represents. | |
virtual RTPAddress * | CreateCopy (RTPMemoryManager *mgr) const=0 |
Creates a copy of the RTPAddress instance. | |
virtual bool | IsSameAddress (const RTPAddress *addr) const=0 |
Checks if the address addr is the same address as the one this instance represents. | |
virtual bool | IsFromSameHost (const RTPAddress *addr) const=0 |
Checks if the address addr represents the same host as this instance. |
virtual RTPAddress* RTPAddress::CreateCopy | ( | RTPMemoryManager * | mgr | ) | const [pure virtual] |
Creates a copy of the RTPAddress instance. If mgr
is not NULL, the corresponding memory manager will be used to allocate the memory for the address copy.
virtual bool RTPAddress::IsSameAddress | ( | const RTPAddress * | addr | ) | const [pure virtual] |
Checks if the address addr
is the same address as the one this instance represents. Implementations must be able to handle a NULL argument.
virtual bool RTPAddress::IsFromSameHost | ( | const RTPAddress * | addr | ) | const [pure virtual] |
Checks if the address addr
represents the same host as this instance. Implementations must be able to handle a NULL argument.