SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <rtpaddress.h>
Public Member Functions | |
RTPAddress () | |
RTPAddress (const QHostAddress &address, uint16_t port) | |
QAbstractSocket::NetworkLayerProtocol | GetAddressType () const |
RTPAddress * | CreateCopy () const |
bool | IsSameAddress (const RTPAddress *addr) const |
bool | IsFromSameHost (const RTPAddress *addr) const |
bool | operator== (const RTPAddress &otherAddress) const |
const QHostAddress & | getAddress () const |
void | setAddress (const QHostAddress &address) |
uint16_t | getPort () const |
void | setPort (uint16_t port) |
uint16_t | getRtcpsendport () const |
void | setRtcpsendport (uint16_t rtcpsendport) |
Private Attributes | |
QHostAddress | address |
uint16_t | port |
uint16_t | rtcpsendport |
This class is an abstract class which is used to specify destinations, multicast groups etc.
Definition at line 52 of file rtpaddress.h.
|
inline |
Default constructor. Address and port set via setters
Definition at line 56 of file rtpaddress.h.
Referenced by CreateCopy().
|
inline |
RTPAddress * qrtplib::RTPAddress::CreateCopy | ( | ) | const |
Creates a copy of the RTPAddress instance. 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.
Definition at line 38 of file rtpaddress.cpp.
References address, port, rtcpsendport, and RTPAddress().
Referenced by qrtplib::RTPInternalSourceData::SetRTCPDataAddress(), qrtplib::RTPInternalSourceData::SetRTPDataAddress(), and qrtplib::RTPCollisionList::UpdateAddress().
|
inline |
Get host address
Definition at line 100 of file rtpaddress.h.
Referenced by qrtplib::RTPUDPTransmitter::ComesFromThisTransmitter(), qrtplib::RTPUDPTransmitter::JoinMulticastGroup(), and qrtplib::RTPUDPTransmitter::LeaveMulticastGroup().
|
inline |
Returns the type of address the actual implementation represents.
Definition at line 67 of file rtpaddress.h.
References leansdr::operator==().
|
inline |
Get RTP port
Definition at line 112 of file rtpaddress.h.
Referenced by qrtplib::RTPUDPTransmitter::ComesFromThisTransmitter().
|
inline |
Get RTCP port
Definition at line 124 of file rtpaddress.h.
Referenced by qrtplib::RTPUDPTransmitter::ComesFromThisTransmitter().
bool qrtplib::RTPAddress::IsFromSameHost | ( | const RTPAddress * | addr | ) | const |
Checks if the address addr
represents the same host as this instance. Checks if the address addr
represents the same host as this instance. Implementations must be able to handle a NULL argument.
Note that this function is only used for received packets.
Definition at line 67 of file rtpaddress.cpp.
References address.
Referenced by qrtplib::RTPSources::CheckCollision().
bool qrtplib::RTPAddress::IsSameAddress | ( | const RTPAddress * | addr | ) | const |
Checks if the address addr
is the same address as the one this instance represents. Checks if the address addr
is the same address as the one this instance represents. Implementations must be able to handle a NULL argument.
Note that this function is only used for received packets, and for those the rtcpsendport variable is not important and should be ignored.
Definition at line 47 of file rtpaddress.cpp.
Referenced by qrtplib::RTPSources::CheckCollision(), and operator==().
bool qrtplib::RTPAddress::operator== | ( | const RTPAddress & | otherAddress | ) | const |
Equality
Definition at line 80 of file rtpaddress.cpp.
References IsSameAddress().
|
inline |
Set host address
Definition at line 106 of file rtpaddress.h.
Referenced by qrtplib::RTPUDPTransmitter::readRTCPPendingDatagrams(), and qrtplib::RTPUDPTransmitter::readRTPPendingDatagrams().
|
inline |
Set RTP port
Definition at line 118 of file rtpaddress.h.
Referenced by qrtplib::RTPUDPTransmitter::readRTCPPendingDatagrams(), and qrtplib::RTPUDPTransmitter::readRTPPendingDatagrams().
|
inline |
|
private |
Definition at line 136 of file rtpaddress.h.
Referenced by CreateCopy(), IsFromSameHost(), and IsSameAddress().
|
private |
Definition at line 137 of file rtpaddress.h.
Referenced by CreateCopy(), and IsSameAddress().
|
private |
Definition at line 138 of file rtpaddress.h.
Referenced by CreateCopy().