mediasoup 3.20.0 → 3.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/lib/Consumer.d.ts.map +1 -1
- package/node/lib/Consumer.js +5 -4
- package/node/lib/DataConsumer.d.ts +2 -3
- package/node/lib/DataConsumer.d.ts.map +1 -1
- package/node/lib/DataConsumer.js +10 -7
- package/node/lib/DataConsumerTypes.d.ts +5 -4
- package/node/lib/DataConsumerTypes.d.ts.map +1 -1
- package/node/lib/DataProducer.d.ts.map +1 -1
- package/node/lib/DataProducer.js +2 -1
- package/node/lib/PipeTransport.d.ts.map +1 -1
- package/node/lib/PipeTransport.js +5 -4
- package/node/lib/PlainTransport.d.ts.map +1 -1
- package/node/lib/PlainTransport.js +6 -5
- package/node/lib/Producer.d.ts.map +1 -1
- package/node/lib/Producer.js +4 -3
- package/node/lib/Router.js +1 -1
- package/node/lib/WebRtcTransport.d.ts.map +1 -1
- package/node/lib/WebRtcTransport.js +6 -5
- package/node/lib/fbs/consumer/degrade-request.d.ts +30 -0
- package/node/lib/fbs/consumer/degrade-request.d.ts.map +1 -0
- package/node/lib/fbs/consumer/degrade-request.js +124 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +24 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +1 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.js +102 -0
- package/node/lib/fbs/data-consumer/send-response.d.ts +21 -0
- package/node/lib/fbs/data-consumer/send-response.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/send-response.js +91 -0
- package/node/lib/fbs/data-consumer.d.ts +1 -0
- package/node/lib/fbs/data-consumer.d.ts.map +1 -1
- package/node/lib/fbs/data-consumer.js +4 -1
- package/node/lib/fbs/producer/degrade-request.d.ts +30 -0
- package/node/lib/fbs/producer/degrade-request.d.ts.map +1 -0
- package/node/lib/fbs/producer/degrade-request.js +124 -0
- package/node/lib/fbs/response/body.d.ts +7 -5
- package/node/lib/fbs/response/body.d.ts.map +1 -1
- package/node/lib/fbs/response/body.js +7 -3
- package/node/lib/fbs/response/response.d.ts +3 -2
- package/node/lib/fbs/response/response.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +5 -5
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts +24 -0
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts.map +1 -0
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.js +102 -0
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts +24 -0
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts.map +1 -0
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.js +102 -0
- package/node/lib/fbs/worker/close-notification.d.ts +18 -0
- package/node/lib/fbs/worker/close-notification.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-notification.js +78 -0
- package/node/lib/fbs/worker/close-request.d.ts +18 -0
- package/node/lib/fbs/worker/close-request.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-request.js +78 -0
- package/node/lib/fbs/worker/close-worker-notification.d.ts +18 -0
- package/node/lib/fbs/worker/close-worker-notification.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-worker-notification.js +78 -0
- package/node/lib/sctpParametersTypes.d.ts +23 -0
- package/node/lib/sctpParametersTypes.d.ts.map +1 -1
- package/node/lib/test/test-Consumer.js +194 -0
- package/node/lib/test/test-DataConsumer.js +6 -0
- package/node/lib/test/test-Router.js +11 -0
- package/node/lib/test/test-werift-sctp.js +7 -0
- package/npm-scripts.mjs +2 -2
- package/package.json +7 -6
- package/worker/Makefile +5 -1
- package/worker/deps/libwebrtc/meson.build +5 -1
- package/worker/fbs/dataConsumer.fbs +4 -0
- package/worker/fbs/response.fbs +1 -0
- package/worker/fuzzer/src/RTC/RTP/FuzzerPacket.cpp +2 -2
- package/worker/include/Channel/ChannelMessageRegistrator.hpp +4 -3
- package/worker/include/Channel/ChannelNotification.hpp +0 -4
- package/worker/include/Channel/ChannelRequest.hpp +3 -4
- package/worker/include/DepLibSRTP.hpp +2 -2
- package/worker/include/RTC/ActiveSpeakerObserver.hpp +2 -2
- package/worker/include/RTC/AudioLevelObserver.hpp +2 -2
- package/worker/include/RTC/Consumer.hpp +1 -1
- package/worker/include/RTC/DataConsumer.hpp +2 -2
- package/worker/include/RTC/DtlsTransport.hpp +4 -4
- package/worker/include/RTC/ICE/IceServer.hpp +2 -2
- package/worker/include/RTC/ICE/StunPacket.hpp +34 -34
- package/worker/include/RTC/KeyFrameRequestManager.hpp +3 -3
- package/worker/include/RTC/Parameters.hpp +2 -2
- package/worker/include/RTC/PipeConsumer.hpp +6 -5
- package/worker/include/RTC/PlainTransport.hpp +0 -1
- package/worker/include/RTC/PortManager.hpp +92 -12
- package/worker/include/RTC/Producer.hpp +7 -6
- package/worker/include/RTC/RTCP/Feedback.hpp +1 -2
- package/worker/include/RTC/RTCP/FeedbackRtpTransport.hpp +2 -2
- package/worker/include/RTC/RTCP/Packet.hpp +2 -2
- package/worker/include/RTC/RTCP/Sdes.hpp +1 -1
- package/worker/include/RTC/RTP/Codecs/DependencyDescriptor.hpp +2 -1
- package/worker/include/RTC/RTP/Packet.hpp +57 -57
- package/worker/include/RTC/RTP/ProbationGenerator.hpp +2 -2
- package/worker/include/RTC/RTP/SharedPacket.hpp +4 -4
- package/worker/include/RTC/Router.hpp +12 -11
- package/worker/include/RTC/RtcLogger.hpp +2 -2
- package/worker/include/RTC/RtpDictionaries.hpp +6 -6
- package/worker/include/RTC/RtpListener.hpp +4 -4
- package/worker/include/RTC/SCTP/association/Association.hpp +13 -13
- package/worker/include/RTC/SCTP/association/HeartbeatHandler.hpp +2 -2
- package/worker/include/RTC/SCTP/association/NegotiatedCapabilities.hpp +2 -2
- package/worker/include/RTC/SCTP/association/PacketSender.hpp +3 -3
- package/worker/include/RTC/SCTP/association/StateCookie.hpp +9 -9
- package/worker/include/RTC/SCTP/association/StreamResetHandler.hpp +4 -4
- package/worker/include/RTC/SCTP/association/TransmissionControlBlock.hpp +24 -24
- package/worker/include/RTC/SCTP/association/TransmissionControlBlockContextInterface.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/Chunk.hpp +86 -86
- package/worker/include/RTC/SCTP/packet/ErrorCause.hpp +18 -18
- package/worker/include/RTC/SCTP/packet/Packet.hpp +33 -33
- package/worker/include/RTC/SCTP/packet/Parameter.hpp +24 -24
- package/worker/include/RTC/SCTP/packet/TLV.hpp +13 -13
- package/worker/include/RTC/SCTP/packet/UserData.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/chunks/AbortAssociationChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/AnyDataChunk.hpp +9 -9
- package/worker/include/RTC/SCTP/packet/chunks/AnyForwardTsnChunk.hpp +3 -3
- package/worker/include/RTC/SCTP/packet/chunks/CookieAckChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/CookieEchoChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/DataChunk.hpp +11 -11
- package/worker/include/RTC/SCTP/packet/chunks/ForwardTsnChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/HeartbeatAckChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/HeartbeatRequestChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/IDataChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/IForwardTsnChunk.hpp +7 -7
- package/worker/include/RTC/SCTP/packet/chunks/InitAckChunk.hpp +10 -10
- package/worker/include/RTC/SCTP/packet/chunks/InitChunk.hpp +8 -8
- package/worker/include/RTC/SCTP/packet/chunks/OperationErrorChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/ReConfigChunk.hpp +10 -10
- package/worker/include/RTC/SCTP/packet/chunks/SackChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownAckChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownCompleteChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/UnknownChunk.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/errorCauses/CookieReceivedWhileShuttingDownErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/InvalidMandatoryParameterErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/OutOfResourceErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/ProtocolViolationErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/RestartOfAnAssociationWithNewAddressesErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/UnknownErrorCause.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/errorCauses/UnrecognizedChunkTypeErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/UnrecognizedParametersErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/UnresolvableAddressErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/UserInitiatedAbortErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/CookiePreservativeParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/ForwardTsnSupportedParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/HeartbeatInfoParameter.hpp +3 -3
- package/worker/include/RTC/SCTP/packet/parameters/IPv4AddressParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/IPv6AddressParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.hpp +7 -7
- package/worker/include/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/StateCookieParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/SupportedAddressTypesParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/SupportedExtensionsParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/UnknownParameter.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/parameters/UnrecognizedParameterParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.hpp +7 -7
- package/worker/include/RTC/SCTP/public/AssociationInterface.hpp +7 -7
- package/worker/include/RTC/SCTP/public/AssociationListenerInterface.hpp +26 -26
- package/worker/include/RTC/SCTP/public/AssociationMetrics.hpp +7 -7
- package/worker/include/RTC/SCTP/public/Message.hpp +1 -1
- package/worker/include/RTC/SCTP/public/SctpOptions.hpp +4 -4
- package/worker/include/RTC/SCTP/public/SctpTypes.hpp +10 -10
- package/worker/include/RTC/SCTP/rx/DataTracker.hpp +1 -1
- package/worker/include/RTC/SCTP/rx/ReassemblyStreamsInterface.hpp +1 -1
- package/worker/include/RTC/SCTP/tx/OutstandingData.hpp +39 -39
- package/worker/include/RTC/SCTP/tx/RetransmissionErrorCounter.hpp +1 -1
- package/worker/include/RTC/SCTP/tx/RetransmissionQueue.hpp +14 -14
- package/worker/include/RTC/SCTP/tx/RoundRobinSendQueue.hpp +1 -1
- package/worker/include/RTC/SctpListener.hpp +2 -2
- package/worker/include/RTC/SimulcastConsumer.hpp +2 -1
- package/worker/include/RTC/TcpServer.hpp +3 -2
- package/worker/include/RTC/Transport.hpp +8 -8
- package/worker/include/RTC/UdpSocket.hpp +3 -2
- package/worker/include/RTC/WebRtcServer.hpp +4 -5
- package/worker/include/RTC/WebRtcTransport.hpp +2 -2
- package/worker/include/Settings.hpp +3 -3
- package/worker/include/Worker.hpp +3 -3
- package/worker/include/handles/TcpServerHandle.hpp +2 -2
- package/worker/meson.build +9 -4
- package/worker/mocks/include/Channel/MockChannelMessageRegistrator.hpp +4 -3
- package/worker/src/Channel/ChannelNotification.cpp +5 -4
- package/worker/src/Channel/ChannelRequest.cpp +9 -6
- package/worker/src/DepLibSRTP.cpp +1 -1
- package/worker/src/RTC/AudioLevelObserver.cpp +2 -2
- package/worker/src/RTC/DataConsumer.cpp +13 -3
- package/worker/src/RTC/DataProducer.cpp +1 -1
- package/worker/src/RTC/DtlsTransport.cpp +3 -3
- package/worker/src/RTC/ICE/IceServer.cpp +1 -1
- package/worker/src/RTC/ICE/StunPacket.cpp +77 -77
- package/worker/src/RTC/PipeTransport.cpp +5 -4
- package/worker/src/RTC/PlainTransport.cpp +9 -8
- package/worker/src/RTC/PortManager.cpp +174 -114
- package/worker/src/RTC/Producer.cpp +0 -1
- package/worker/src/RTC/RTCP/Feedback.cpp +6 -6
- package/worker/src/RTC/RTCP/FeedbackPs.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackPsAfb.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackPsPli.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackPsRemb.cpp +2 -2
- package/worker/src/RTC/RTCP/FeedbackRtp.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackRtpSrReq.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackRtpTransport.cpp +2 -2
- package/worker/src/RTC/RTCP/Packet.cpp +2 -2
- package/worker/src/RTC/RTCP/Sdes.cpp +1 -1
- package/worker/src/RTC/RTP/Codecs/DependencyDescriptor.cpp +2 -1
- package/worker/src/RTC/RTP/Packet.cpp +68 -68
- package/worker/src/RTC/RTP/ProbationGenerator.cpp +3 -3
- package/worker/src/RTC/RTP/RtpStreamRecv.cpp +3 -3
- package/worker/src/RTC/RTP/RtxStream.cpp +2 -2
- package/worker/src/RTC/RTP/SharedPacket.cpp +4 -4
- package/worker/src/RTC/Router.cpp +5 -5
- package/worker/src/RTC/RtcLogger.cpp +1 -1
- package/worker/src/RTC/RtpDictionaries/RtpCodecMimeType.cpp +4 -4
- package/worker/src/RTC/RtpDictionaries/RtpParameters.cpp +2 -3
- package/worker/src/RTC/SCTP/association/Association.cpp +100 -97
- package/worker/src/RTC/SCTP/association/HeartbeatHandler.cpp +6 -6
- package/worker/src/RTC/SCTP/association/NegotiatedCapabilities.cpp +3 -3
- package/worker/src/RTC/SCTP/association/PacketSender.cpp +1 -1
- package/worker/src/RTC/SCTP/association/StreamResetHandler.cpp +2 -2
- package/worker/src/RTC/SCTP/association/TransmissionControlBlock.cpp +5 -5
- package/worker/src/RTC/SCTP/packet/Chunk.cpp +52 -52
- package/worker/src/RTC/SCTP/packet/ErrorCause.cpp +14 -14
- package/worker/src/RTC/SCTP/packet/Packet.cpp +17 -17
- package/worker/src/RTC/SCTP/packet/Parameter.cpp +17 -17
- package/worker/src/RTC/SCTP/packet/TLV.cpp +8 -8
- package/worker/src/RTC/SCTP/packet/chunks/AbortAssociationChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/CookieAckChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/CookieEchoChunk.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/chunks/DataChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/ForwardTsnChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/HeartbeatAckChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/HeartbeatRequestChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/IDataChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/IForwardTsnChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/InitAckChunk.cpp +4 -4
- package/worker/src/RTC/SCTP/packet/chunks/InitChunk.cpp +4 -4
- package/worker/src/RTC/SCTP/packet/chunks/OperationErrorChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/ReConfigChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/SackChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/ShutdownAckChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/ShutdownChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/ShutdownCompleteChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/CookieReceivedWhileShuttingDownErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/InvalidMandatoryParameterErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.cpp +4 -4
- package/worker/src/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/OutOfResourceErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/ProtocolViolationErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/RestartOfAnAssociationWithNewAddressesErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/UnrecognizedChunkTypeErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/UnrecognizedParametersErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/UnresolvableAddressErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/UserInitiatedAbortErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/CookiePreservativeParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/ForwardTsnSupportedParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/HeartbeatInfoParameter.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/IPv4AddressParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/IPv6AddressParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/StateCookieParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/parameters/SupportedAddressTypesParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/parameters/SupportedExtensionsParameter.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/UnrecognizedParameterParameter.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/rx/InterleavedReassemblyStreams.cpp +1 -0
- package/worker/src/RTC/SCTP/rx/TraditionalReassemblyStreams.cpp +1 -0
- package/worker/src/RTC/SCTP/tx/OutstandingData.cpp +8 -8
- package/worker/src/RTC/SCTP/tx/RoundRobinSendQueue.cpp +1 -1
- package/worker/src/RTC/SvcConsumer.cpp +6 -2
- package/worker/src/RTC/TcpServer.cpp +4 -4
- package/worker/src/RTC/Transport.cpp +42 -19
- package/worker/src/RTC/UdpSocket.cpp +4 -4
- package/worker/src/RTC/WebRtcServer.cpp +8 -8
- package/worker/src/RTC/WebRtcTransport.cpp +9 -8
- package/worker/src/Settings.cpp +2 -2
- package/worker/src/lib.cpp +1 -2
- package/worker/subprojects/packagefiles/ankerl-unordered-dense/meson.build +5 -0
- package/worker/subprojects/unordered-dense.wrap +9 -0
- package/worker/tasks.py +293 -196
- package/worker/test/src/RTC/ICE/TestStunPacket.cpp +22 -22
- package/worker/test/src/RTC/ICE/iceCommon.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpEcn.cpp +8 -8
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpNack.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpSrReq.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpTllei.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpTmmb.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestSenderReport.cpp +1 -1
- package/worker/test/src/RTC/RTP/TestPacket.cpp +26 -26
- package/worker/test/src/RTC/RTP/TestSharedPacket.cpp +1 -1
- package/worker/test/src/RTC/RTP/rtpCommon.cpp +1 -1
- package/worker/test/src/RTC/SCTP/association/TestNegotiatedCapabilities.cpp +4 -4
- package/worker/test/src/RTC/SCTP/packet/TestPacket.cpp +14 -14
- package/worker/test/src/RTC/SCTP/packet/chunks/TestAbortAssociationChunk.cpp +4 -4
- package/worker/test/src/RTC/SCTP/packet/chunks/TestCookieAckChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestCookieEchoChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestForwardTsnChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestHeartbeatAckChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestHeartbeatRequestChunk.cpp +9 -9
- package/worker/test/src/RTC/SCTP/packet/chunks/TestIDataChunk.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/chunks/TestIForwardTsnChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestInitAckChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestInitChunk.cpp +8 -8
- package/worker/test/src/RTC/SCTP/packet/chunks/TestOperationErrorChunk.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/chunks/TestReConfigChunk.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/chunks/TestSackChunk.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/chunks/TestShutdownAckChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestShutdownCompleteChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestUnknownChunk.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestCookieReceivedWhileShuttingDownErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestInvalidMandatoryParameterErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestInvalidStreamIdentifierErrorCause.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestMissingMandatoryParameterErrorCause.cpp +11 -11
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestNoUserDataErrorCause.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestOutOfResourceErrorCause.cpp +5 -5
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestProtocolViolationErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestRestartOfAnAssociationWithNewAddressesErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestStaleCookieErrorCause.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnknownErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnrecognizedChunkTypeErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnrecognizedParametersErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnresolvableAddressErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUserInitiatedAbortErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestAddIncomingStreamsRequestParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestAddOutgoingStreamsRequestParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestCookiePreservativeParameter.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/parameters/TestForwardTsnSupportedParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestHeartbeatInfoParameter.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestIPv4AddressParameter.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/parameters/TestIPv6AddressParameter.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/parameters/TestIncomingSsnResetRequestParameter.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestOutgoingSsnResetRequestParameter.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestReconfigurationResponseParameter.cpp +5 -5
- package/worker/test/src/RTC/SCTP/packet/parameters/TestSsnTsnResetRequestParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestStateCookieParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestSupportedAddressTypesParameter.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/parameters/TestSupportedExtensionsParameter.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/parameters/TestUnknownParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestUnrecognizedParameterParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestZeroChecksumAcceptableParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/sctpCommon.cpp +1 -1
- package/worker/test/src/RTC/SCTP/tx/TestOutstandingData.cpp +3 -3
- package/worker/test/src/RTC/SCTP/tx/TestRetransmissionQueue.cpp +1 -1
- package/worker/test/src/RTC/TestNackGenerator.cpp +1 -1
- package/worker/test/src/RTC/TestPortManager.cpp +126 -0
- package/worker/test/src/RTC/TestTransportCongestionControlServer.cpp +2 -2
- package/worker/test/src/RTC/TestTransportTuple.cpp +3 -2
- package/worker/test/src/Utils/TestCrypto.cpp +3 -3
- package/worker/test/src/Utils/TestString.cpp +1 -1
|
@@ -12,7 +12,7 @@ namespace RTC
|
|
|
12
12
|
namespace SCTP
|
|
13
13
|
{
|
|
14
14
|
/**
|
|
15
|
-
* SCTP I-Data Chunk (
|
|
15
|
+
* SCTP I-Data Chunk (I-DATA) (64).
|
|
16
16
|
*
|
|
17
17
|
* @see RFC 8260.
|
|
18
18
|
*
|
|
@@ -34,7 +34,7 @@ namespace RTC
|
|
|
34
34
|
* \ \
|
|
35
35
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
36
36
|
*
|
|
37
|
-
* - Chunk
|
|
37
|
+
* - Chunk type (8 bits): 64.
|
|
38
38
|
* - Res (4 bits): All set to 0.
|
|
39
39
|
* - I bit (1 bit): The (I)mmediate bit, if set, indicates that the
|
|
40
40
|
* receiver SHOULD NOT delay the sending of the corresponding SACK chunk.
|
|
@@ -70,7 +70,7 @@ namespace RTC
|
|
|
70
70
|
|
|
71
71
|
class IDataChunk : public AnyDataChunk
|
|
72
72
|
{
|
|
73
|
-
// We need that
|
|
73
|
+
// We need that packet calls protected and private methods in this class.
|
|
74
74
|
friend class Packet;
|
|
75
75
|
|
|
76
76
|
public:
|
|
@@ -81,7 +81,7 @@ namespace RTC
|
|
|
81
81
|
* Parse a IDataChunk.
|
|
82
82
|
*
|
|
83
83
|
* @remarks
|
|
84
|
-
* `bufferLength` may exceed the exact length of the
|
|
84
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
85
85
|
*/
|
|
86
86
|
static IDataChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ namespace RTC
|
|
|
89
89
|
* Create a IDataChunk.
|
|
90
90
|
*
|
|
91
91
|
* @remarks
|
|
92
|
-
* `bufferLength` could be greater than the
|
|
92
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
93
93
|
*/
|
|
94
94
|
static IDataChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
95
95
|
|
|
@@ -259,7 +259,7 @@ namespace RTC
|
|
|
259
259
|
IDataChunk* SoftClone(const uint8_t* buffer) const final;
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
|
-
* We need to override this method since this
|
|
262
|
+
* We need to override this method since this chunk has a variable-length
|
|
263
263
|
* value and the fixed header doesn't have default length.
|
|
264
264
|
*/
|
|
265
265
|
size_t GetHeaderLength() const final
|
|
@@ -10,7 +10,7 @@ namespace RTC
|
|
|
10
10
|
namespace SCTP
|
|
11
11
|
{
|
|
12
12
|
/**
|
|
13
|
-
* SCTP I-Forward Cumulative TSN Chunk (
|
|
13
|
+
* SCTP I-Forward Cumulative TSN Chunk (I-FORWARD-TSN) (194)
|
|
14
14
|
*
|
|
15
15
|
* @see RFC 8260.
|
|
16
16
|
*
|
|
@@ -33,7 +33,7 @@ namespace RTC
|
|
|
33
33
|
* | Message Identifier |
|
|
34
34
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
35
35
|
*
|
|
36
|
-
* - Chunk
|
|
36
|
+
* - Chunk type (8 bits): 194.
|
|
37
37
|
* - Flags: All set to 0.
|
|
38
38
|
* - Length (16 bits).
|
|
39
39
|
* - New Cumulative TSN (32 bits): This indicates the new cumulative TSN to
|
|
@@ -46,7 +46,7 @@ namespace RTC
|
|
|
46
46
|
* (U bit is not set).
|
|
47
47
|
* - Message Identifier (MID) (32 bits): This field holds the largest
|
|
48
48
|
* Message Identifier for ordered or unordered messages indicated by the
|
|
49
|
-
* U bit that was skipped for the stream specified by the
|
|
49
|
+
* U bit that was skipped for the stream specified by the stream
|
|
50
50
|
* Identifier. For ordered messages, this is similar to the FORWARD-TSN
|
|
51
51
|
* chunk, just replacing the 16-bit SSN by the 32-bit MID.
|
|
52
52
|
*/
|
|
@@ -56,7 +56,7 @@ namespace RTC
|
|
|
56
56
|
|
|
57
57
|
class IForwardTsnChunk : public AnyForwardTsnChunk
|
|
58
58
|
{
|
|
59
|
-
// We need that
|
|
59
|
+
// We need that packet calls protected and private methods in this class.
|
|
60
60
|
friend class Packet;
|
|
61
61
|
|
|
62
62
|
public:
|
|
@@ -67,7 +67,7 @@ namespace RTC
|
|
|
67
67
|
* Parse a IForwardTsnChunk.
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* `bufferLength` may exceed the exact length of the
|
|
70
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
71
71
|
*/
|
|
72
72
|
static IForwardTsnChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
73
73
|
|
|
@@ -75,7 +75,7 @@ namespace RTC
|
|
|
75
75
|
* Create a IForwardTsnChunk.
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
|
-
* `bufferLength` could be greater than the
|
|
78
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
79
79
|
*/
|
|
80
80
|
static IForwardTsnChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
81
81
|
|
|
@@ -132,7 +132,7 @@ namespace RTC
|
|
|
132
132
|
IForwardTsnChunk* SoftClone(const uint8_t* buffer) const final;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* We need to override this method since this
|
|
135
|
+
* We need to override this method since this chunk has a variable-length
|
|
136
136
|
* value and the fixed header doesn't have default length.
|
|
137
137
|
*/
|
|
138
138
|
size_t GetHeaderLength() const final
|
|
@@ -10,7 +10,7 @@ namespace RTC
|
|
|
10
10
|
namespace SCTP
|
|
11
11
|
{
|
|
12
12
|
/**
|
|
13
|
-
* SCTP Initiation Acknowledgement Chunk (
|
|
13
|
+
* SCTP Initiation Acknowledgement Chunk (INIT-ACK) (2).
|
|
14
14
|
*
|
|
15
15
|
* @see RFC 9260.
|
|
16
16
|
*
|
|
@@ -32,7 +32,7 @@ namespace RTC
|
|
|
32
32
|
* \ \
|
|
33
33
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
34
34
|
*
|
|
35
|
-
* - Chunk
|
|
35
|
+
* - Chunk type (8 bits): 2.
|
|
36
36
|
* - Flags (8 bits): All set to 0.
|
|
37
37
|
* - Initiate Tag (32 bits): The receiver of the INIT ACK chunk records the
|
|
38
38
|
* value of the Initiate Tag parameter. This value MUST be placed into
|
|
@@ -51,11 +51,11 @@ namespace RTC
|
|
|
51
51
|
* - Initial TSN (I-TSN) (32 bits): Defines the TSN that the sender of the
|
|
52
52
|
* INIT ACK chunk will use initially.
|
|
53
53
|
*
|
|
54
|
-
* Variable-
|
|
54
|
+
* Variable-length Parameters:
|
|
55
55
|
* - State Cookie (7), mandatory.
|
|
56
56
|
* - IPv4 Address (5), optional.
|
|
57
57
|
* - IPv6 Address (6), optional.
|
|
58
|
-
* - Unrecognized
|
|
58
|
+
* - Unrecognized parameter (8), optional.
|
|
59
59
|
* - Reserved for ECN Capable (32768, 0x8000), optional.
|
|
60
60
|
* - Host Name Address (11), deprecated: The receiver of an INIT chunk or an
|
|
61
61
|
* INIT ACK containing a Host Name Address parameter MUST send an ABORT
|
|
@@ -67,7 +67,7 @@ namespace RTC
|
|
|
67
67
|
|
|
68
68
|
class InitAckChunk : public AnyInitChunk
|
|
69
69
|
{
|
|
70
|
-
// We need that
|
|
70
|
+
// We need that packet calls protected and private methods in this class.
|
|
71
71
|
friend class Packet;
|
|
72
72
|
|
|
73
73
|
public:
|
|
@@ -78,7 +78,7 @@ namespace RTC
|
|
|
78
78
|
* Parse a InitAckChunk.
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
|
-
* `bufferLength` may exceed the exact length of the
|
|
81
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
82
82
|
*/
|
|
83
83
|
static InitAckChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@ namespace RTC
|
|
|
86
86
|
* Create a InitAckChunk.
|
|
87
87
|
*
|
|
88
88
|
* @remarks
|
|
89
|
-
* `bufferLength` could be greater than the
|
|
89
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
90
90
|
*/
|
|
91
91
|
static InitAckChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
92
92
|
|
|
@@ -162,10 +162,10 @@ namespace RTC
|
|
|
162
162
|
InitAckChunk* SoftClone(const uint8_t* buffer) const final;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* We don't really need to override this method since this
|
|
165
|
+
* We don't really need to override this method since this chunk doesn't
|
|
166
166
|
* have variable-length value (despite the fixed header doesn't have
|
|
167
|
-
* default length). Optional/
|
|
168
|
-
*
|
|
167
|
+
* default length). Optional/variable-length parameters and/or error
|
|
168
|
+
* causes don't account here.
|
|
169
169
|
*/
|
|
170
170
|
size_t GetHeaderLength() const final
|
|
171
171
|
{
|
|
@@ -32,7 +32,7 @@ namespace RTC
|
|
|
32
32
|
* \ \
|
|
33
33
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
34
34
|
*
|
|
35
|
-
* - Chunk
|
|
35
|
+
* - Chunk type (8 bits): 1.
|
|
36
36
|
* - Flags (8 bits): All set to 0.
|
|
37
37
|
* - Initiate Tag (32 bits): The receiver of the INIT chunk (the responding
|
|
38
38
|
* end) records the value of the Initiate Tag parameter. This value MUST
|
|
@@ -51,7 +51,7 @@ namespace RTC
|
|
|
51
51
|
* - Initial TSN (I-TSN) (32 bits): Defines the TSN that the sender of the
|
|
52
52
|
* INIT chunk will use initially.
|
|
53
53
|
*
|
|
54
|
-
* Variable-
|
|
54
|
+
* Variable-length Parameters:
|
|
55
55
|
* - IPv4 Address (5), optional.
|
|
56
56
|
* - IPv6 Address (6), optional.
|
|
57
57
|
* - Cookie Preservative (9), optional.
|
|
@@ -67,7 +67,7 @@ namespace RTC
|
|
|
67
67
|
|
|
68
68
|
class InitChunk : public AnyInitChunk
|
|
69
69
|
{
|
|
70
|
-
// We need that
|
|
70
|
+
// We need that packet calls protected and private methods in this class.
|
|
71
71
|
friend class Packet;
|
|
72
72
|
|
|
73
73
|
public:
|
|
@@ -78,7 +78,7 @@ namespace RTC
|
|
|
78
78
|
* Parse a InitChunk.
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
|
-
* `bufferLength` may exceed the exact length of the
|
|
81
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
82
82
|
*/
|
|
83
83
|
static InitChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@ namespace RTC
|
|
|
86
86
|
* Create a InitChunk.
|
|
87
87
|
*
|
|
88
88
|
* @remarks
|
|
89
|
-
* `bufferLength` could be greater than the
|
|
89
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
90
90
|
*/
|
|
91
91
|
static InitChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
92
92
|
|
|
@@ -162,10 +162,10 @@ namespace RTC
|
|
|
162
162
|
InitChunk* SoftClone(const uint8_t* buffer) const final;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* We don't really need to override this method since this
|
|
165
|
+
* We don't really need to override this method since this chunk doesn't
|
|
166
166
|
* have variable-length value (despite the fixed header doesn't have
|
|
167
|
-
* default length). Optional/
|
|
168
|
-
*
|
|
167
|
+
* default length). Optional/variable-length parameters and/or error
|
|
168
|
+
* causes don't account here.
|
|
169
169
|
*/
|
|
170
170
|
size_t GetHeaderLength() const final
|
|
171
171
|
{
|
|
@@ -9,7 +9,7 @@ namespace RTC
|
|
|
9
9
|
namespace SCTP
|
|
10
10
|
{
|
|
11
11
|
/**
|
|
12
|
-
* SCTP Operation Error Chunk (
|
|
12
|
+
* SCTP Operation Error Chunk (OPERATION-ERROR) (9).
|
|
13
13
|
*
|
|
14
14
|
* @see RFC 9260.
|
|
15
15
|
*
|
|
@@ -23,11 +23,11 @@ namespace RTC
|
|
|
23
23
|
* \ \
|
|
24
24
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
25
25
|
*
|
|
26
|
-
* - Chunk
|
|
26
|
+
* - Chunk type (8 bits): 9.
|
|
27
27
|
* - Flags (8 bits): All set to 0.
|
|
28
28
|
* - Length (16 bits).
|
|
29
29
|
*
|
|
30
|
-
* Optional
|
|
30
|
+
* Optional variable-length error causes (anyone).
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
// Forward declaration.
|
|
@@ -35,7 +35,7 @@ namespace RTC
|
|
|
35
35
|
|
|
36
36
|
class OperationErrorChunk : public Chunk
|
|
37
37
|
{
|
|
38
|
-
// We need that
|
|
38
|
+
// We need that packet calls protected and private methods in this class.
|
|
39
39
|
friend class Packet;
|
|
40
40
|
|
|
41
41
|
public:
|
|
@@ -43,7 +43,7 @@ namespace RTC
|
|
|
43
43
|
* Parse a OperationErrorChunk.
|
|
44
44
|
*
|
|
45
45
|
* @remarks
|
|
46
|
-
* `bufferLength` may exceed the exact length of the
|
|
46
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
47
47
|
*/
|
|
48
48
|
static OperationErrorChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ namespace RTC
|
|
|
51
51
|
* Create a OperationErrorChunk.
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* `bufferLength` could be greater than the
|
|
54
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
55
55
|
*/
|
|
56
56
|
static OperationErrorChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
57
57
|
|
|
@@ -9,7 +9,7 @@ namespace RTC
|
|
|
9
9
|
namespace SCTP
|
|
10
10
|
{
|
|
11
11
|
/**
|
|
12
|
-
* SCTP Re-Config Chunk (
|
|
12
|
+
* SCTP Re-Config Chunk (RE-CONFIG) (130).
|
|
13
13
|
*
|
|
14
14
|
* @see RFC 6525.
|
|
15
15
|
*
|
|
@@ -27,17 +27,17 @@ namespace RTC
|
|
|
27
27
|
* \ \
|
|
28
28
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
29
29
|
*
|
|
30
|
-
* - Chunk
|
|
30
|
+
* - Chunk type (8 bits): 130.
|
|
31
31
|
* - Flags (8 bits): All set to 0.
|
|
32
32
|
* - Length (16 bits).
|
|
33
|
-
* - Re-configuration
|
|
33
|
+
* - Re-configuration parameter (variable length): This field holds a
|
|
34
34
|
* Re-configuration Request Parameter or a Re-configuration Response
|
|
35
|
-
*
|
|
35
|
+
* parameter.
|
|
36
36
|
*
|
|
37
|
-
* Variable-
|
|
37
|
+
* Variable-length Parameters:
|
|
38
38
|
* - Re-configuration Request Parameter or a Re-configuration Response
|
|
39
|
-
*
|
|
40
|
-
* - Another
|
|
39
|
+
* parameter, mandatory.
|
|
40
|
+
* - Another parameter, optional.
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
43
|
// Forward declaration.
|
|
@@ -45,7 +45,7 @@ namespace RTC
|
|
|
45
45
|
|
|
46
46
|
class ReConfigChunk : public Chunk
|
|
47
47
|
{
|
|
48
|
-
// We need that
|
|
48
|
+
// We need that packet calls protected and private methods in this class.
|
|
49
49
|
friend class Packet;
|
|
50
50
|
|
|
51
51
|
public:
|
|
@@ -53,7 +53,7 @@ namespace RTC
|
|
|
53
53
|
* Parse a ReConfigChunk.
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* - `bufferLength` may exceed the exact length of the
|
|
56
|
+
* - `bufferLength` may exceed the exact length of the chunk.
|
|
57
57
|
*/
|
|
58
58
|
static ReConfigChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ namespace RTC
|
|
|
61
61
|
* Create a ReConfigChunk.
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
|
-
* - `bufferLength` could be greater than the
|
|
64
|
+
* - `bufferLength` could be greater than the chunk real length.
|
|
65
65
|
*/
|
|
66
66
|
static ReConfigChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
67
67
|
|
|
@@ -44,7 +44,7 @@ namespace RTC
|
|
|
44
44
|
* | Duplicate TSN M |
|
|
45
45
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
46
46
|
*
|
|
47
|
-
* - Chunk
|
|
47
|
+
* - Chunk type (8 bits): 3.
|
|
48
48
|
* - Res (4 bits): All set to 0.
|
|
49
49
|
* - Length (16 bits).
|
|
50
50
|
* - Cumulative TSN Ack (32 bits): The largest TSN, such that all TSNs
|
|
@@ -75,7 +75,7 @@ namespace RTC
|
|
|
75
75
|
|
|
76
76
|
class SackChunk : public Chunk
|
|
77
77
|
{
|
|
78
|
-
// We need that
|
|
78
|
+
// We need that packet calls protected and private methods in this class.
|
|
79
79
|
friend class Packet;
|
|
80
80
|
|
|
81
81
|
public:
|
|
@@ -104,7 +104,7 @@ namespace RTC
|
|
|
104
104
|
* Parse a SackChunk.
|
|
105
105
|
*
|
|
106
106
|
* @remarks
|
|
107
|
-
* `bufferLength` may exceed the exact length of the
|
|
107
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
108
108
|
*/
|
|
109
109
|
static SackChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
110
110
|
|
|
@@ -112,7 +112,7 @@ namespace RTC
|
|
|
112
112
|
* Create a SackChunk.
|
|
113
113
|
*
|
|
114
114
|
* @remarks
|
|
115
|
-
* `bufferLength` could be greater than the
|
|
115
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
116
116
|
*/
|
|
117
117
|
static SackChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
118
118
|
|
|
@@ -182,7 +182,7 @@ namespace RTC
|
|
|
182
182
|
SackChunk* SoftClone(const uint8_t* buffer) const final;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
* We need to override this method since this
|
|
185
|
+
* We need to override this method since this chunk has a variable-length
|
|
186
186
|
* value and the fixed header doesn't have default length.
|
|
187
187
|
*/
|
|
188
188
|
size_t GetHeaderLength() const final
|
|
@@ -9,7 +9,7 @@ namespace RTC
|
|
|
9
9
|
namespace SCTP
|
|
10
10
|
{
|
|
11
11
|
/**
|
|
12
|
-
* SCTP Shutdown Acknowledgement Chunk (
|
|
12
|
+
* SCTP Shutdown Acknowledgement Chunk (SHUTDOWN-ACK) (8).
|
|
13
13
|
*
|
|
14
14
|
* @see RFC 9260.
|
|
15
15
|
*
|
|
@@ -19,7 +19,7 @@ namespace RTC
|
|
|
19
19
|
* | Type = 8 | Chunk Flags | Length = 4 |
|
|
20
20
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
21
21
|
*
|
|
22
|
-
* - Chunk
|
|
22
|
+
* - Chunk type (8 bits): 8.
|
|
23
23
|
* - Flags (8 bits): All set to 0.
|
|
24
24
|
* - Length (16 bits): 4.
|
|
25
25
|
*/
|
|
@@ -29,7 +29,7 @@ namespace RTC
|
|
|
29
29
|
|
|
30
30
|
class ShutdownAckChunk : public Chunk
|
|
31
31
|
{
|
|
32
|
-
// We need that
|
|
32
|
+
// We need that packet calls protected and private methods in this class.
|
|
33
33
|
friend class Packet;
|
|
34
34
|
|
|
35
35
|
public:
|
|
@@ -37,7 +37,7 @@ namespace RTC
|
|
|
37
37
|
* Parse a ShutdownAckChunk.
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
* `bufferLength` may exceed the exact length of the
|
|
40
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
41
41
|
*/
|
|
42
42
|
static ShutdownAckChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
43
43
|
|
|
@@ -45,7 +45,7 @@ namespace RTC
|
|
|
45
45
|
* Create a ShutdownAckChunk.
|
|
46
46
|
*
|
|
47
47
|
* @remarks
|
|
48
|
-
* `bufferLength` could be greater than the
|
|
48
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
49
49
|
*/
|
|
50
50
|
static ShutdownAckChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
51
51
|
|
|
@@ -22,7 +22,7 @@ namespace RTC
|
|
|
22
22
|
* | Cumulative TSN Ack |
|
|
23
23
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
24
24
|
*
|
|
25
|
-
* - Chunk
|
|
25
|
+
* - Chunk type (8 bits): 7.
|
|
26
26
|
* - Flags (8 bits): All set to 0.
|
|
27
27
|
* - Length (16 bits): 8.
|
|
28
28
|
* - Cumulative TSN Ack (32 bits): The largest TSN, such that all TSNs
|
|
@@ -35,7 +35,7 @@ namespace RTC
|
|
|
35
35
|
|
|
36
36
|
class ShutdownChunk : public Chunk
|
|
37
37
|
{
|
|
38
|
-
// We need that
|
|
38
|
+
// We need that packet calls protected and private methods in this class.
|
|
39
39
|
friend class Packet;
|
|
40
40
|
|
|
41
41
|
public:
|
|
@@ -46,7 +46,7 @@ namespace RTC
|
|
|
46
46
|
* Parse a ShutdownChunk.
|
|
47
47
|
*
|
|
48
48
|
* @remarks
|
|
49
|
-
* `bufferLength` may exceed the exact length of the
|
|
49
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
50
50
|
*/
|
|
51
51
|
static ShutdownChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ namespace RTC
|
|
|
54
54
|
* Create a ShutdownChunk.
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* `bufferLength` could be greater than the
|
|
57
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
58
58
|
*/
|
|
59
59
|
static ShutdownChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
60
60
|
|
|
@@ -102,7 +102,7 @@ namespace RTC
|
|
|
102
102
|
ShutdownChunk* SoftClone(const uint8_t* buffer) const final;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* We don't really need to override this method since this
|
|
105
|
+
* We don't really need to override this method since this chunk doesn't
|
|
106
106
|
* have variable-length value (despite the fixed header doesn't have
|
|
107
107
|
* default length).
|
|
108
108
|
*/
|
|
@@ -9,7 +9,7 @@ namespace RTC
|
|
|
9
9
|
namespace SCTP
|
|
10
10
|
{
|
|
11
11
|
/**
|
|
12
|
-
* SCTP Shutdown Complete Chunk (
|
|
12
|
+
* SCTP Shutdown Complete Chunk (SHUTDOWN-COMPLETE) (14).
|
|
13
13
|
*
|
|
14
14
|
* @see RFC 9260.
|
|
15
15
|
*
|
|
@@ -19,7 +19,7 @@ namespace RTC
|
|
|
19
19
|
* | Type = 14 | Reserved |T| Length = 4 |
|
|
20
20
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
21
21
|
*
|
|
22
|
-
* - Chunk
|
|
22
|
+
* - Chunk type (8 bits): 14
|
|
23
23
|
* - T bit (1 bit): The T bit is set to 0 if the sender filled in the
|
|
24
24
|
* Verification Tag expected by the peer. If the Verification Tag is
|
|
25
25
|
* reflected, the T bit MUST be set to 1. Reflecting means that the sent
|
|
@@ -32,7 +32,7 @@ namespace RTC
|
|
|
32
32
|
|
|
33
33
|
class ShutdownCompleteChunk : public Chunk
|
|
34
34
|
{
|
|
35
|
-
// We need that
|
|
35
|
+
// We need that packet calls protected and private methods in this class.
|
|
36
36
|
friend class Packet;
|
|
37
37
|
|
|
38
38
|
public:
|
|
@@ -40,7 +40,7 @@ namespace RTC
|
|
|
40
40
|
* Parse a ShutdownCompleteChunk.
|
|
41
41
|
*
|
|
42
42
|
* @remarks
|
|
43
|
-
* `bufferLength` may exceed the exact length of the
|
|
43
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
44
44
|
*/
|
|
45
45
|
static ShutdownCompleteChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ namespace RTC
|
|
|
48
48
|
* Create a ShutdownCompleteChunk.
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* `bufferLength` could be greater than the
|
|
51
|
+
* `bufferLength` could be greater than the chunk real length.
|
|
52
52
|
*/
|
|
53
53
|
static ShutdownCompleteChunk* Factory(uint8_t* buffer, size_t bufferLength);
|
|
54
54
|
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
class UnknownChunk : public Chunk
|
|
29
29
|
{
|
|
30
|
-
// We need that
|
|
30
|
+
// We need that packet calls protected and private methods in this class.
|
|
31
31
|
friend class Packet;
|
|
32
32
|
|
|
33
33
|
public:
|
|
@@ -35,7 +35,7 @@ namespace RTC
|
|
|
35
35
|
* Parse a UnknownChunk.
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* `bufferLength` may exceed the exact length of the
|
|
38
|
+
* `bufferLength` may exceed the exact length of the chunk.
|
|
39
39
|
*/
|
|
40
40
|
static UnknownChunk* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
41
41
|
|
package/worker/include/RTC/SCTP/packet/errorCauses/CookieReceivedWhileShuttingDownErrorCause.hpp
CHANGED
|
@@ -10,7 +10,7 @@ namespace RTC
|
|
|
10
10
|
{
|
|
11
11
|
/**
|
|
12
12
|
* SCTP Cookie Received While Shutting Down Error Cause
|
|
13
|
-
* (
|
|
13
|
+
* (COOKIE-RECEIVED-WHILE-SHUTTING-DOWN) (10)
|
|
14
14
|
*
|
|
15
15
|
* @see RFC 9260.
|
|
16
16
|
*
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
class CookieReceivedWhileShuttingDownErrorCause : public ErrorCause
|
|
28
28
|
{
|
|
29
|
-
// We need that
|
|
29
|
+
// We need that chunk calls protected and private methods in this class.
|
|
30
30
|
friend class Chunk;
|
|
31
31
|
|
|
32
32
|
public:
|
|
@@ -34,7 +34,7 @@ namespace RTC
|
|
|
34
34
|
* Parse a CookieReceivedWhileShuttingDownErrorCause.
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
* `bufferLength` may exceed the exact length of the
|
|
37
|
+
* `bufferLength` may exceed the exact length of the error cause.
|
|
38
38
|
*/
|
|
39
39
|
static CookieReceivedWhileShuttingDownErrorCause* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ namespace RTC
|
|
|
42
42
|
* Create a CookieReceivedWhileShuttingDownErrorCause.
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
|
-
* `bufferLength` could be greater than the
|
|
45
|
+
* `bufferLength` could be greater than the error cause real length.
|
|
46
46
|
*/
|
|
47
47
|
static CookieReceivedWhileShuttingDownErrorCause* Factory(uint8_t* buffer, size_t bufferLength);
|
|
48
48
|
|
|
@@ -10,7 +10,7 @@ namespace RTC
|
|
|
10
10
|
{
|
|
11
11
|
/**
|
|
12
12
|
* SCTP Invalid Mandatory Parameter Error Cause
|
|
13
|
-
* (
|
|
13
|
+
* (INVALID-MANDATORY-PARAMETER) (7)
|
|
14
14
|
*
|
|
15
15
|
* @see RFC 9260.
|
|
16
16
|
*
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
class InvalidMandatoryParameterErrorCause : public ErrorCause
|
|
28
28
|
{
|
|
29
|
-
// We need that
|
|
29
|
+
// We need that chunk calls protected and private methods in this class.
|
|
30
30
|
friend class Chunk;
|
|
31
31
|
|
|
32
32
|
public:
|
|
@@ -34,7 +34,7 @@ namespace RTC
|
|
|
34
34
|
* Parse a InvalidMandatoryParameterErrorCause.
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
* `bufferLength` may exceed the exact length of the
|
|
37
|
+
* `bufferLength` may exceed the exact length of the error cause.
|
|
38
38
|
*/
|
|
39
39
|
static InvalidMandatoryParameterErrorCause* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ namespace RTC
|
|
|
42
42
|
* Create a InvalidMandatoryParameterErrorCause.
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
|
-
* `bufferLength` could be greater than the
|
|
45
|
+
* `bufferLength` could be greater than the error cause real length.
|
|
46
46
|
*/
|
|
47
47
|
static InvalidMandatoryParameterErrorCause* Factory(uint8_t* buffer, size_t bufferLength);
|
|
48
48
|
|
|
@@ -10,7 +10,7 @@ namespace RTC
|
|
|
10
10
|
namespace SCTP
|
|
11
11
|
{
|
|
12
12
|
/**
|
|
13
|
-
* SCTP Invalid Stream Identifier Error Cause (
|
|
13
|
+
* SCTP Invalid Stream Identifier Error Cause (INVALID-STREAM-IDENTIFIER)
|
|
14
14
|
* (1)
|
|
15
15
|
*
|
|
16
16
|
* @see RFC 9260.
|
|
@@ -29,7 +29,7 @@ namespace RTC
|
|
|
29
29
|
|
|
30
30
|
class InvalidStreamIdentifierErrorCause : public ErrorCause
|
|
31
31
|
{
|
|
32
|
-
// We need that
|
|
32
|
+
// We need that chunk calls protected and private methods in this class.
|
|
33
33
|
friend class Chunk;
|
|
34
34
|
|
|
35
35
|
public:
|
|
@@ -40,7 +40,7 @@ namespace RTC
|
|
|
40
40
|
* Parse a InvalidStreamIdentifierErrorCause.
|
|
41
41
|
*
|
|
42
42
|
* @remarks
|
|
43
|
-
* `bufferLength` may exceed the exact length of the
|
|
43
|
+
* `bufferLength` may exceed the exact length of the error cause.
|
|
44
44
|
*/
|
|
45
45
|
static InvalidStreamIdentifierErrorCause* Parse(const uint8_t* buffer, size_t bufferLength);
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ namespace RTC
|
|
|
48
48
|
* Create a InvalidStreamIdentifierErrorCause.
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* `bufferLength` could be greater than the
|
|
51
|
+
* `bufferLength` could be greater than the error cause real length.
|
|
52
52
|
*/
|
|
53
53
|
static InvalidStreamIdentifierErrorCause* Factory(uint8_t* buffer, size_t bufferLength);
|
|
54
54
|
|
|
@@ -86,7 +86,7 @@ namespace RTC
|
|
|
86
86
|
InvalidStreamIdentifierErrorCause* SoftClone(const uint8_t* buffer) const final;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* We don't really need to override this method since this
|
|
89
|
+
* We don't really need to override this method since this error cause
|
|
90
90
|
* doesn't have variable-length value (despite the fixed header doesn't
|
|
91
91
|
* have default length).
|
|
92
92
|
*/
|