提交 aea3b7a2 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Use explicit keyword in all the class constructor declarations with a single argument.

上级 d061f1e5
...@@ -11,7 +11,7 @@ namespace Channel ...@@ -11,7 +11,7 @@ namespace Channel
class Notifier class Notifier
{ {
public: public:
Notifier(Channel::UnixStreamSocket* channel); explicit Notifier(Channel::UnixStreamSocket* channel);
virtual ~Notifier(); virtual ~Notifier();
void Close(); void Close();
......
...@@ -23,7 +23,7 @@ namespace Channel ...@@ -23,7 +23,7 @@ namespace Channel
static uint8_t writeBuffer[]; static uint8_t writeBuffer[];
public: public:
UnixStreamSocket(int fd); explicit UnixStreamSocket(int fd);
virtual ~UnixStreamSocket(); virtual ~UnixStreamSocket();
void SetListener(Listener* listener); void SetListener(Listener* listener);
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
class Logger class Logger
{ {
public: public:
static void Init(const std::string id, Channel::UnixStreamSocket* channel); static void Init(const std::string& id, Channel::UnixStreamSocket* channel);
static bool HasDebugLevel(); static bool HasDebugLevel();
public: public:
......
...@@ -15,7 +15,7 @@ class Loop : ...@@ -15,7 +15,7 @@ class Loop :
public RTC::Room::Listener public RTC::Room::Listener
{ {
public: public:
Loop(Channel::UnixStreamSocket* channel); explicit Loop(Channel::UnixStreamSocket* channel);
~Loop(); ~Loop();
private: private:
......
...@@ -10,7 +10,7 @@ class MediaSoupError : ...@@ -10,7 +10,7 @@ class MediaSoupError :
public std::runtime_error public std::runtime_error
{ {
public: public:
MediaSoupError(const char* description); explicit MediaSoupError(const char* description);
}; };
/* Inline methods. */ /* Inline methods. */
......
...@@ -114,7 +114,7 @@ namespace RTC ...@@ -114,7 +114,7 @@ namespace RTC
static std::vector<SrtpProfileMapEntry> srtpProfiles; static std::vector<SrtpProfileMapEntry> srtpProfiles;
public: public:
DtlsTransport(Listener* listener); explicit DtlsTransport(Listener* listener);
virtual ~DtlsTransport(); virtual ~DtlsTransport();
void Close(); void Close();
......
...@@ -36,7 +36,7 @@ namespace RTC ...@@ -36,7 +36,7 @@ namespace RTC
}; };
public: public:
IceServer(Listener* listener, const std::string& usernameFragment, const std::string password); IceServer(Listener* listener, const std::string& usernameFragment, const std::string& password);
void Close(); void Close();
void ProcessStunMessage(RTC::StunMessage* msg, RTC::TransportTuple* tuple); void ProcessStunMessage(RTC::StunMessage* msg, RTC::TransportTuple* tuple);
......
...@@ -27,27 +27,27 @@ namespace RTC ...@@ -27,27 +27,27 @@ namespace RTC
public: public:
Value() {}; Value() {};
Value(bool booleanValue) : explicit Value(bool booleanValue) :
type(Type::BOOLEAN), type(Type::BOOLEAN),
booleanValue(booleanValue) booleanValue(booleanValue)
{} {}
Value(int32_t integerValue) : explicit Value(int32_t integerValue) :
type(Type::INTEGER), type(Type::INTEGER),
integerValue(integerValue) integerValue(integerValue)
{} {}
Value(double doubleValue) : explicit Value(double doubleValue) :
type(Type::DOUBLE), type(Type::DOUBLE),
doubleValue(doubleValue) doubleValue(doubleValue)
{} {}
Value(std::string& stringValue) : explicit Value(std::string& stringValue) :
type(Type::STRING), type(Type::STRING),
stringValue(stringValue) stringValue(stringValue)
{} {}
Value(std::vector<int32_t>& arrayOfIntegers) : explicit Value(std::vector<int32_t>& arrayOfIntegers) :
type(Type::ARRAY_OF_INTEGERS), type(Type::ARRAY_OF_INTEGERS),
arrayOfIntegers(arrayOfIntegers) arrayOfIntegers(arrayOfIntegers)
{} {}
......
...@@ -34,7 +34,7 @@ namespace RTC { namespace RTCP ...@@ -34,7 +34,7 @@ namespace RTC { namespace RTCP
void SetMediaSsrc(uint32_t ssrc); void SetMediaSsrc(uint32_t ssrc);
protected: protected:
FeedbackPacket(CommonHeader* commonHeader); explicit FeedbackPacket(CommonHeader* commonHeader);
FeedbackPacket(typename T::MessageType type, uint32_t sender_ssrc, uint32_t media_ssrc); FeedbackPacket(typename T::MessageType type, uint32_t sender_ssrc, uint32_t media_ssrc);
virtual ~FeedbackPacket(); virtual ~FeedbackPacket();
......
...@@ -18,7 +18,7 @@ namespace RTC { namespace RTCP ...@@ -18,7 +18,7 @@ namespace RTC { namespace RTCP
public: public:
// Parsed Report. Points to an external data. // Parsed Report. Points to an external data.
FeedbackPsItemPacket(CommonHeader* commonHeader); explicit FeedbackPsItemPacket(CommonHeader* commonHeader);
FeedbackPsItemPacket(uint32_t sender_ssrc, uint32_t media_ssrc = 0); FeedbackPsItemPacket(uint32_t sender_ssrc, uint32_t media_ssrc = 0);
void Dump() override; void Dump() override;
......
...@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP ...@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
public: public:
// Parsed Report. Points to an external data. // Parsed Report. Points to an external data.
FeedbackPsAfbPacket(CommonHeader* commonHeader); explicit FeedbackPsAfbPacket(CommonHeader* commonHeader);
FeedbackPsAfbPacket(uint32_t sender_ssrc, uint32_t media_ssrc); FeedbackPsAfbPacket(uint32_t sender_ssrc, uint32_t media_ssrc);
size_t GetSize() override; size_t GetSize() override;
......
...@@ -37,8 +37,8 @@ namespace RTC { namespace RTCP ...@@ -37,8 +37,8 @@ namespace RTC { namespace RTCP
static FirItem* Parse(const uint8_t* data, size_t len); static FirItem* Parse(const uint8_t* data, size_t len);
public: public:
FirItem(Header* header); explicit FirItem(Header* header);
FirItem(FirItem* item); explicit FirItem(FirItem* item);
FirItem(uint32_t ssrc, uint8_t sequence_number); FirItem(uint32_t ssrc, uint8_t sequence_number);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
......
...@@ -31,9 +31,9 @@ namespace RTC { namespace RTCP ...@@ -31,9 +31,9 @@ namespace RTC { namespace RTCP
static PsLeiItem* Parse(const uint8_t* data, size_t len); static PsLeiItem* Parse(const uint8_t* data, size_t len);
public: public:
PsLeiItem(Header* header); explicit PsLeiItem(Header* header);
PsLeiItem(PsLeiItem* item); explicit PsLeiItem(PsLeiItem* item);
PsLeiItem(uint32_t ssrc); explicit PsLeiItem(uint32_t ssrc);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
void Dump() override; void Dump() override;
......
...@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP ...@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
public: public:
// Parsed Report. Points to an external data. // Parsed Report. Points to an external data.
FeedbackPsPliPacket(CommonHeader* commonHeader); explicit FeedbackPsPliPacket(CommonHeader* commonHeader);
FeedbackPsPliPacket(uint32_t sender_ssrc, uint32_t media_ssrc); FeedbackPsPliPacket(uint32_t sender_ssrc, uint32_t media_ssrc);
void Dump() override; void Dump() override;
......
...@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP ...@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP
static RpsiItem* Parse(const uint8_t* data, size_t len); static RpsiItem* Parse(const uint8_t* data, size_t len);
public: public:
RpsiItem(Header* header); explicit RpsiItem(Header* header);
RpsiItem(RpsiItem* item); explicit RpsiItem(RpsiItem* item);
RpsiItem(uint8_t payload_type, uint8_t* bit_string, size_t length); RpsiItem(uint8_t payload_type, uint8_t* bit_string, size_t length);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
...@@ -70,8 +70,7 @@ namespace RTC { namespace RTCP ...@@ -70,8 +70,7 @@ namespace RTC { namespace RTCP
inline inline
RpsiItem::RpsiItem(RpsiItem* item) : RpsiItem::RpsiItem(RpsiItem* item) :
header(item->header) header(item->header)
{ {}
}
inline inline
size_t RpsiItem::GetSize() size_t RpsiItem::GetSize()
......
...@@ -31,8 +31,8 @@ namespace RTC { namespace RTCP ...@@ -31,8 +31,8 @@ namespace RTC { namespace RTCP
static SliItem* Parse(const uint8_t* data, size_t len); static SliItem* Parse(const uint8_t* data, size_t len);
public: public:
SliItem(Header* header); explicit SliItem(Header* header);
SliItem(SliItem* item); explicit SliItem(SliItem* item);
SliItem(uint16_t first, uint16_t number, uint8_t pictureId); SliItem(uint16_t first, uint16_t number, uint8_t pictureId);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
......
...@@ -38,8 +38,8 @@ namespace RTC { namespace RTCP ...@@ -38,8 +38,8 @@ namespace RTC { namespace RTCP
static TstItem* Parse(const uint8_t* data, size_t len); static TstItem* Parse(const uint8_t* data, size_t len);
public: public:
TstItem(Header* header); explicit TstItem(Header* header);
TstItem(TstItem* item); explicit TstItem(TstItem* item);
TstItem(uint32_t ssrc, uint8_t sequenceNumber, uint8_t index); TstItem(uint32_t ssrc, uint8_t sequenceNumber, uint8_t index);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
......
...@@ -42,8 +42,8 @@ namespace RTC { namespace RTCP ...@@ -42,8 +42,8 @@ namespace RTC { namespace RTCP
static VbcmItem* Parse(const uint8_t* data, size_t len); static VbcmItem* Parse(const uint8_t* data, size_t len);
public: public:
VbcmItem(Header* header); explicit VbcmItem(Header* header);
VbcmItem(VbcmItem* item); explicit VbcmItem(VbcmItem* item);
VbcmItem(uint32_t ssrc, uint8_t sequence_number, uint8_t payload_type, uint16_t length, uint8_t* value); VbcmItem(uint32_t ssrc, uint8_t sequence_number, uint8_t payload_type, uint16_t length, uint8_t* value);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
......
...@@ -20,7 +20,7 @@ namespace RTC { namespace RTCP ...@@ -20,7 +20,7 @@ namespace RTC { namespace RTCP
public: public:
// Parsed Report. Points to an external data. // Parsed Report. Points to an external data.
FeedbackRtpItemPacket(CommonHeader* commonHeader); explicit FeedbackRtpItemPacket(CommonHeader* commonHeader);
FeedbackRtpItemPacket(uint32_t sender_ssrc, uint32_t media_ssrc = 0); FeedbackRtpItemPacket(uint32_t sender_ssrc, uint32_t media_ssrc = 0);
void Dump() override; void Dump() override;
......
...@@ -48,8 +48,8 @@ namespace RTC { namespace RTCP ...@@ -48,8 +48,8 @@ namespace RTC { namespace RTCP
static EcnItem* Parse(const uint8_t* data, size_t len); static EcnItem* Parse(const uint8_t* data, size_t len);
public: public:
EcnItem(Header* header); explicit EcnItem(Header* header);
EcnItem(EcnItem* item); explicit EcnItem(EcnItem* item);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
void Dump() override; void Dump() override;
......
...@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP ...@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP
static NackItem* Parse(const uint8_t* data, size_t len); static NackItem* Parse(const uint8_t* data, size_t len);
public: public:
NackItem(Header* header); explicit NackItem(Header* header);
NackItem(NackItem* item); explicit NackItem(NackItem* item);
NackItem(uint16_t packetId, uint16_t lostPacketBitmask); NackItem(uint16_t packetId, uint16_t lostPacketBitmask);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
......
...@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP ...@@ -16,7 +16,7 @@ namespace RTC { namespace RTCP
public: public:
// Parsed Report. Points to an external data. // Parsed Report. Points to an external data.
FeedbackRtpSrReqPacket(CommonHeader* commonHeader); explicit FeedbackRtpSrReqPacket(CommonHeader* commonHeader);
FeedbackRtpSrReqPacket(uint32_t sender_ssrc, uint32_t media_ssrc); FeedbackRtpSrReqPacket(uint32_t sender_ssrc, uint32_t media_ssrc);
void Dump() override; void Dump() override;
......
...@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP ...@@ -32,8 +32,8 @@ namespace RTC { namespace RTCP
static TlleiItem* Parse(const uint8_t* data, size_t len); static TlleiItem* Parse(const uint8_t* data, size_t len);
public: public:
TlleiItem(Header* header); explicit TlleiItem(Header* header);
TlleiItem(TlleiItem* item); explicit TlleiItem(TlleiItem* item);
TlleiItem(uint16_t packetId, uint16_t lostPacketBitmask); TlleiItem(uint16_t packetId, uint16_t lostPacketBitmask);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
......
...@@ -36,8 +36,8 @@ namespace RTC { namespace RTCP ...@@ -36,8 +36,8 @@ namespace RTC { namespace RTCP
static TmmbItem* Parse(const uint8_t* data, size_t len); static TmmbItem* Parse(const uint8_t* data, size_t len);
public: public:
TmmbItem(Header* header); explicit TmmbItem(Header* header);
TmmbItem(TmmbItem* item); explicit TmmbItem(TmmbItem* item);
TmmbItem(uint32_t ssrc, uint64_t bitrate, uint32_t overhead); TmmbItem(uint32_t ssrc, uint64_t bitrate, uint32_t overhead);
// Virtual methods inherited from FeedbackItem // Virtual methods inherited from FeedbackItem
......
...@@ -59,7 +59,7 @@ namespace RTC { namespace RTCP ...@@ -59,7 +59,7 @@ namespace RTC { namespace RTCP
static Packet* Parse(const uint8_t* data, size_t len); static Packet* Parse(const uint8_t* data, size_t len);
public: public:
Packet(Type type); explicit Packet(Type type);
virtual ~Packet(); virtual ~Packet();
void SetNext(Packet* packet); void SetNext(Packet* packet);
......
...@@ -28,8 +28,8 @@ namespace RTC { namespace RTCP ...@@ -28,8 +28,8 @@ namespace RTC { namespace RTCP
public: public:
// Parsed Report. Points to an external data. // Parsed Report. Points to an external data.
ReceiverReport(Header* header); explicit ReceiverReport(Header* header);
ReceiverReport(ReceiverReport* report); explicit ReceiverReport(ReceiverReport* report);
// Locally generated Report. Holds the data internally. // Locally generated Report. Holds the data internally.
ReceiverReport(); ReceiverReport();
......
...@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP ...@@ -41,8 +41,8 @@ namespace RTC { namespace RTCP
static const std::string& Type2String(Type type); static const std::string& Type2String(Type type);
public: public:
SdesItem(Header* header); explicit SdesItem(Header* header);
SdesItem(SdesItem* item); explicit SdesItem(SdesItem* item);
SdesItem(Type type, size_t len, const char* value); SdesItem(Type type, size_t len, const char* value);
~SdesItem(); ~SdesItem();
...@@ -73,8 +73,8 @@ namespace RTC { namespace RTCP ...@@ -73,8 +73,8 @@ namespace RTC { namespace RTCP
static SdesChunk* Parse(const uint8_t* data, size_t len); static SdesChunk* Parse(const uint8_t* data, size_t len);
public: public:
SdesChunk(const uint32_t ssrc); explicit SdesChunk(const uint32_t ssrc);
SdesChunk(SdesChunk* chunk); explicit SdesChunk(SdesChunk* chunk);
~SdesChunk(); ~SdesChunk();
void Dump(); void Dump();
......
...@@ -26,8 +26,8 @@ namespace RTC { namespace RTCP ...@@ -26,8 +26,8 @@ namespace RTC { namespace RTCP
public: public:
// Parsed Report. Points to an external data. // Parsed Report. Points to an external data.
SenderReport(Header* header); explicit SenderReport(Header* header);
SenderReport(SenderReport* report); explicit SenderReport(SenderReport* report);
// Locally generated Report. Holds the data internally. // Locally generated Report. Holds the data internally.
SenderReport(); SenderReport();
......
...@@ -125,7 +125,7 @@ namespace RTC ...@@ -125,7 +125,7 @@ namespace RTC
class RtcpFeedback class RtcpFeedback
{ {
public: public:
RtcpFeedback(Json::Value& data); explicit RtcpFeedback(Json::Value& data);
Json::Value toJson(); Json::Value toJson();
...@@ -166,7 +166,7 @@ namespace RTC ...@@ -166,7 +166,7 @@ namespace RTC
{ {
public: public:
RtpFecParameters() {}; RtpFecParameters() {};
RtpFecParameters(Json::Value& data); explicit RtpFecParameters(Json::Value& data);
Json::Value toJson(); Json::Value toJson();
...@@ -179,7 +179,7 @@ namespace RTC ...@@ -179,7 +179,7 @@ namespace RTC
{ {
public: public:
RtpRtxParameters() {}; RtpRtxParameters() {};
RtpRtxParameters(Json::Value& data); explicit RtpRtxParameters(Json::Value& data);
Json::Value toJson(); Json::Value toJson();
...@@ -191,7 +191,7 @@ namespace RTC ...@@ -191,7 +191,7 @@ namespace RTC
{ {
public: public:
RtpEncodingParameters() {}; RtpEncodingParameters() {};
RtpEncodingParameters(Json::Value& data); explicit RtpEncodingParameters(Json::Value& data);
Json::Value toJson(); Json::Value toJson();
...@@ -214,7 +214,7 @@ namespace RTC ...@@ -214,7 +214,7 @@ namespace RTC
class RtpHeaderExtensionParameters class RtpHeaderExtensionParameters
{ {
public: public:
RtpHeaderExtensionParameters(Json::Value& data); explicit RtpHeaderExtensionParameters(Json::Value& data);
Json::Value toJson(); Json::Value toJson();
...@@ -229,7 +229,7 @@ namespace RTC ...@@ -229,7 +229,7 @@ namespace RTC
{ {
public: public:
RtcpParameters() {}; RtcpParameters() {};
RtcpParameters(Json::Value& data); explicit RtcpParameters(Json::Value& data);
Json::Value toJson(); Json::Value toJson();
...@@ -242,8 +242,8 @@ namespace RTC ...@@ -242,8 +242,8 @@ namespace RTC
class RtpParameters class RtpParameters
{ {
public: public:
RtpParameters(Json::Value& data); explicit RtpParameters(Json::Value& data);
RtpParameters(const RtpParameters* RtpParameters); explicit RtpParameters(const RtpParameters* RtpParameters);
Json::Value toJson(); Json::Value toJson();
...@@ -264,7 +264,7 @@ namespace RTC ...@@ -264,7 +264,7 @@ namespace RTC
class RtpHeaderExtension class RtpHeaderExtension
{ {
public: public:
RtpHeaderExtension(Json::Value& data); explicit RtpHeaderExtension(Json::Value& data);
Json::Value toJson(); Json::Value toJson();
......
...@@ -24,7 +24,7 @@ namespace RTC ...@@ -24,7 +24,7 @@ namespace RTC
}; };
public: public:
RtpStream(size_t bufferSize); explicit RtpStream(size_t bufferSize);
~RtpStream(); ~RtpStream();
bool ReceivePacket(RTC::RtpPacket* packet); bool ReceivePacket(RTC::RtpPacket* packet);
......
...@@ -20,7 +20,7 @@ namespace RTC ...@@ -20,7 +20,7 @@ namespace RTC
public: public:
TransportTuple(RTC::UdpSocket* udpSocket, const struct sockaddr* udpRemoteAddr); TransportTuple(RTC::UdpSocket* udpSocket, const struct sockaddr* udpRemoteAddr);
TransportTuple(RTC::TcpConnection* tcpConnection); explicit TransportTuple(RTC::TcpConnection* tcpConnection);
void Close(); void Close();
Json::Value toJson(); Json::Value toJson();
......
...@@ -15,7 +15,7 @@ public: ...@@ -15,7 +15,7 @@ public:
}; };
public: public:
SignalsHandler(Listener* listener); explicit SignalsHandler(Listener* listener);
void Close(); void Close();
void AddSignal(int signum, std::string name); void AddSignal(int signum, std::string name);
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
}; };
public: public:
TcpConnection(size_t bufferSize); explicit TcpConnection(size_t bufferSize);
virtual ~TcpConnection(); virtual ~TcpConnection();
void Close(); void Close();
......
...@@ -14,7 +14,7 @@ public: ...@@ -14,7 +14,7 @@ public:
}; };
public: public:
Timer(Listener* listener); explicit Timer(Listener* listener);
void Close(); void Close();
void Start(uint64_t timeout); void Start(uint64_t timeout);
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
/** /**
* uvHandle must be an already initialized and binded uv_udp_t pointer. * uvHandle must be an already initialized and binded uv_udp_t pointer.
*/ */
UdpSocket(uv_udp_t* uvHandle); explicit UdpSocket(uv_udp_t* uvHandle);
virtual ~UdpSocket(); virtual ~UdpSocket();
void Close(); void Close();
......
...@@ -10,7 +10,7 @@ char Logger::buffer[MS_LOGGER_BUFFER_SIZE]; ...@@ -10,7 +10,7 @@ char Logger::buffer[MS_LOGGER_BUFFER_SIZE];
/* Class methods. */ /* Class methods. */
void Logger::Init(const std::string id, Channel::UnixStreamSocket* channel) void Logger::Init(const std::string& id, Channel::UnixStreamSocket* channel)
{ {
Logger::id = id; Logger::id = id;
Logger::channel = channel; Logger::channel = channel;
......
...@@ -7,7 +7,7 @@ namespace RTC ...@@ -7,7 +7,7 @@ namespace RTC
{ {
/* Instance methods. */ /* Instance methods. */
IceServer::IceServer(Listener* listener, const std::string& usernameFragment, const std::string password) : IceServer::IceServer(Listener* listener, const std::string& usernameFragment, const std::string& password) :
listener(listener), listener(listener),
usernameFragment(usernameFragment), usernameFragment(usernameFragment),
password(password) password(password)
......
...@@ -94,17 +94,16 @@ namespace RTC ...@@ -94,17 +94,16 @@ namespace RTC
ValidateEncodings(); ValidateEncodings();
} }
RtpParameters::RtpParameters(const RtpParameters* rtpParameters) RtpParameters::RtpParameters(const RtpParameters* rtpParameters) :
muxId(rtpParameters->muxId),
codecs(rtpParameters->codecs),
encodings(rtpParameters->encodings),
headerExtensions(rtpParameters->headerExtensions),
rtcp(rtpParameters->rtcp),
hasRtcp(rtpParameters->hasRtcp),
userParameters(rtpParameters->userParameters)
{ {
MS_TRACE(); MS_TRACE();
this->muxId = rtpParameters->muxId;
this->codecs = rtpParameters->codecs;
this->encodings = rtpParameters->encodings;
this->headerExtensions = rtpParameters->headerExtensions;
this->rtcp = rtpParameters->rtcp;
this->hasRtcp = rtpParameters->hasRtcp;
this->userParameters = rtpParameters->userParameters;
} }
Json::Value RtpParameters::toJson() Json::Value RtpParameters::toJson()
......
...@@ -10,7 +10,7 @@ namespace RTC ...@@ -10,7 +10,7 @@ namespace RTC
/* Instance methods. */ /* Instance methods. */
TcpConnection::TcpConnection(Listener* listener, size_t bufferSize) : TcpConnection::TcpConnection(Listener* listener, size_t bufferSize) :
::TcpConnection(bufferSize), ::TcpConnection::TcpConnection(bufferSize),
listener(listener) listener(listener)
{ {
MS_TRACE(); MS_TRACE();
......
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
#include "Logger.h" #include "Logger.h"
#include <map> #include <map>
#include <string> #include <string>
#include <iostream> // std::cerr, std::endl #include <iostream> // std::cerr, std::endl
#include <cstdlib> // std::_Exit(), std::genenv() #include <cstdlib> // std::_Exit(), std::genenv()
#include <csignal> // sigaction() #include <csignal> // sigaction()
#include <cerrno> #include <cerrno>
#include <unistd.h> // getpid(), usleep() #include <unistd.h> // getpid(), usleep()
#include <uv.h> #include <uv.h>
static void init(); static void init();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论