41 #include "rtpconfig.h"
47 class RTPMemoryManager;
86 virtual std::string GetAddressString()
const = 0;
92 RTPAddress(
const AddressType t) : addresstype(t) { }
94 const AddressType addresstype;
This class is an abstract class which is used to specify destinations, multicast groups etc.
Definition: rtpaddress.h:51
virtual bool IsFromSameHost(const RTPAddress *addr) const =0
Checks if the address addr represents the same host as this instance.
virtual bool IsSameAddress(const RTPAddress *addr) const =0
Checks if the address addr is the same address as the one this instance represents.
AddressType GetAddressType() const
Returns the type of address the actual implementation represents.
Definition: rtpaddress.h:64
AddressType
Identifies the actual implementation being used.
Definition: rtpaddress.h:55
@ ByteAddress
A very general type of address, consisting of a port number and a number of bytes representing the ho...
Definition: rtpaddress.h:58
@ UserDefinedAddress
Can be useful for a user-defined transmitter.
Definition: rtpaddress.h:59
@ IPv4Address
Used by the UDP over IPv4 transmitter.
Definition: rtpaddress.h:56
@ IPv6Address
Used by the UDP over IPv6 transmitter.
Definition: rtpaddress.h:57
virtual RTPAddress * CreateCopy(RTPMemoryManager *mgr) const =0
Creates a copy of the RTPAddress instance.
A memory manager.
Definition: rtpmemorymanager.h:151