mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-22 02:35:27 -04:00
qrtplib: RTP address constructor with host address and port
This commit is contained in:
parent
915b865e6a
commit
9f9eaa7a88
@ -52,6 +52,17 @@ namespace qrtplib
|
|||||||
class QRTPLIB_API RTPAddress
|
class QRTPLIB_API RTPAddress
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/** Default constructor. Address and port set via setters */
|
||||||
|
RTPAddress() : port(0), rtcpsendport(0)
|
||||||
|
{}
|
||||||
|
|
||||||
|
/** Constructor with address and port */
|
||||||
|
RTPAddress(const QHostAddress& address, uint16_t port) :
|
||||||
|
address(address),
|
||||||
|
port(port),
|
||||||
|
rtcpsendport(0)
|
||||||
|
{}
|
||||||
|
|
||||||
/** Returns the type of address the actual implementation represents. */
|
/** Returns the type of address the actual implementation represents. */
|
||||||
QAbstractSocket::NetworkLayerProtocol GetAddressType() const
|
QAbstractSocket::NetworkLayerProtocol GetAddressType() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user