/* * 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.
*/ #ifndef NET_DCSCTP_SOCKET_CONTEXT_H_ #define NET_DCSCTP_SOCKET_CONTEXT_H_
// A set of helper methods used by handlers to e.g. send packets. // // Implemented by the TransmissionControlBlock. class Context { public: virtual ~Context() = default;
// Indicates if a connection has been established. virtualbool is_connection_established() const = 0;
// Returns the current Retransmission Timeout (rto) value, in milliseconds. virtual webrtc::TimeDelta current_rto() const = 0;
// Increments the transmission error counter, given a human readable reason. virtualbool IncrementTxErrorCounter(absl::string_view reason) = 0;
// Clears the transmission error counter. virtualvoid ClearTxErrorCounter() = 0;
// Returns true if there have been too many retransmission errors. virtualbool HasTooManyTxErrors() const = 0;
// Returns a PacketBuilder, filled in with the correct verification tag. virtual SctpPacket::Builder PacketBuilder() const = 0;
// Builds the packet from `builder` and sends it. virtualvoid Send(SctpPacket::Builder& builder) = 0;
};
} // namespace dcsctp
#endif// NET_DCSCTP_SOCKET_CONTEXT_H_
Messung V0.5 in Prozent
¤ 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.0.16Bemerkung:
(vorverarbeitet am 2026-04-28)
¤
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.