From 9f9eaa7a882934d24eaca930ce4e9304bb2e891b Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 5 Mar 2018 22:09:00 +0100 Subject: [PATCH] qrtplib: RTP address constructor with host address and port --- qrtplib/rtpaddress.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qrtplib/rtpaddress.h b/qrtplib/rtpaddress.h index e5832f6ce..21b2caf3f 100644 --- a/qrtplib/rtpaddress.h +++ b/qrtplib/rtpaddress.h @@ -52,6 +52,17 @@ namespace qrtplib class QRTPLIB_API RTPAddress { 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. */ QAbstractSocket::NetworkLayerProtocol GetAddressType() const {