mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Merge branch 'v0.12'
This commit is contained in:
2
Jamfile
2
Jamfile
@ -12,10 +12,12 @@ feature.compose <gnutls>on
|
||||
lib libdatachannel
|
||||
: # sources
|
||||
[ glob ./src/*.cpp ]
|
||||
[ glob ./src/impl/*.cpp ]
|
||||
: # requirements
|
||||
<cxxstd>17
|
||||
<include>./include
|
||||
<include>./include/rtc
|
||||
<include>./src
|
||||
<define>RTC_ENABLE_MEDIA=0
|
||||
<define>RTC_ENABLE_WEBSOCKET=0
|
||||
<define>USE_NICE=0
|
||||
|
@ -189,7 +189,7 @@ shared_ptr<DtlsTransport> PeerConnection::initDtlsTransport() {
|
||||
auto certificate = mCertificate.get();
|
||||
auto lower = std::atomic_load(&mIceTransport);
|
||||
auto verifierCallback = weak_bind(&PeerConnection::checkFingerprint, this, _1);
|
||||
auto stateChangeCallback =
|
||||
auto dtlsStateChangeCallback =
|
||||
[this, weak_this = weak_from_this()](DtlsTransport::State transportState) {
|
||||
auto shared_this = weak_this.lock();
|
||||
if (!shared_this)
|
||||
@ -224,7 +224,7 @@ shared_ptr<DtlsTransport> PeerConnection::initDtlsTransport() {
|
||||
// DTLS-SRTP
|
||||
transport = std::make_shared<DtlsSrtpTransport>(
|
||||
lower, certificate, config.mtu, verifierCallback,
|
||||
weak_bind(&PeerConnection::forwardMedia, this, _1), stateChangeCallback);
|
||||
weak_bind(&PeerConnection::forwardMedia, this, _1), dtlsStateChangeCallback);
|
||||
#else
|
||||
PLOG_WARNING << "Ignoring media support (not compiled with media support)";
|
||||
#endif
|
||||
@ -233,7 +233,7 @@ shared_ptr<DtlsTransport> PeerConnection::initDtlsTransport() {
|
||||
if (!transport) {
|
||||
// DTLS only
|
||||
transport = std::make_shared<DtlsTransport>(lower, certificate, config.mtu,
|
||||
verifierCallback, stateChangeCallback);
|
||||
verifierCallback, dtlsStateChangeCallback);
|
||||
}
|
||||
|
||||
std::atomic_store(&mDtlsTransport, transport);
|
||||
@ -738,7 +738,7 @@ void PeerConnection::validateRemoteDescription(const Description &description) {
|
||||
}
|
||||
|
||||
void PeerConnection::processLocalDescription(Description description) {
|
||||
const size_t localSctpPort = DEFAULT_SCTP_PORT;
|
||||
const uint16_t localSctpPort = DEFAULT_SCTP_PORT;
|
||||
const size_t localMaxMessageSize =
|
||||
config.maxMessageSize.value_or(DEFAULT_LOCAL_MAX_MESSAGE_SIZE);
|
||||
|
||||
|
Reference in New Issue
Block a user