/* * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
// Used to keep track of the state of data channels. // Reset needs to happen both ways before signaling the transport // is closed. struct StreamState { // True when the local connection has initiated the reset. // If a connection receives a reset for a stream that isn't // already being reset locally, it needs to fire the signal // SignalClosingProcedureStartedRemotely. bool closure_initiated = false; // True when the local connection received OnIncomingStreamsReset bool incoming_reset_done = false; // True when the local connection received OnStreamsResetPerformed bool outgoing_reset_done = false; // Priority of the stream according to RFC 8831, section 6.4
dcsctp::StreamPriority priority =
dcsctp::StreamPriority(PriorityValue(webrtc::Priority::kLow).value());
};
// Map of all currently open or closing data channels
flat_map<dcsctp::StreamID, StreamState> stream_states_
RTC_GUARDED_BY(network_thread_); bool ready_to_send_data_ RTC_GUARDED_BY(network_thread_) = false;
std::function<void()> on_connected_callback_ RTC_GUARDED_BY(network_thread_);
DataChannelSink* data_channel_sink_ RTC_GUARDED_BY(network_thread_) = nullptr;
};
} // namespace webrtc
#endif// MEDIA_SCTP_DCSCTP_TRANSPORT_H_
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.