JRTPLIB  3.11.2 (development version)
Public Types | Public Member Functions | List of all members
jrtplib::RTPAddress Class Referenceabstract

This class is an abstract class which is used to specify destinations, multicast groups etc.

#include <rtpaddress.h>

Inheritance diagram for jrtplib::RTPAddress:
Inheritance graph
[legend]

Public Types

enum  AddressType {
  IPv4Address , IPv6Address , ByteAddress , UserDefinedAddress ,
  TCPAddress
}
 Identifies the actual implementation being used. More...
 

Public Member Functions

AddressType GetAddressType () const
 Returns the type of address the actual implementation represents.
 
virtual RTPAddressCreateCopy (RTPMemoryManager *mgr) const =0
 Creates a copy of the RTPAddress instance. More...
 
virtual bool IsSameAddress (const RTPAddress *addr) const =0
 Checks if the address addr is the same address as the one this instance represents. More...
 
virtual bool IsFromSameHost (const RTPAddress *addr) const =0
 Checks if the address addr represents the same host as this instance. More...
 

Member Enumeration Documentation

◆ AddressType

Enumerator
IPv4Address 

Used by the UDP over IPv4 transmitter.

IPv6Address 

Used by the UDP over IPv6 transmitter.

ByteAddress 

A very general type of address, consisting of a port number and a number of bytes representing the host address.

UserDefinedAddress 

Can be useful for a user-defined transmitter.

TCPAddress 

Used by the TCP transmitter.

Member Function Documentation

◆ CreateCopy()

virtual RTPAddress* jrtplib::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.

◆ IsFromSameHost()

virtual bool jrtplib::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.

◆ IsSameAddress()

virtual bool jrtplib::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.


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