As discussed recently, DTLS encryption won't split writes over records - in fact the |next_packet_options_| depends on that. As such, we can remove the |WriteAll()| helper and just CHECK that a single |Write()| call either sends the entire data buffer, or fails it all. Bug: None Change-Id: I98ab169d26f89ce4f13b624f804b8b61689f2ddc Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/421680 Auto-Submit: Tony Herre <herre@google.com> Reviewed-by: Jonas Oreland <jonaso@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Stefan Holmer <stefan@webrtc.org> Cr-Commit-Position: refs/heads/main@{#46099}
27 lines
754 B
C++
27 lines
754 B
C++
/*
|
|
* Copyright 2004 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.
|
|
*/
|
|
#include "rtc_base/stream.h"
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// StreamInterface
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
bool StreamInterface::Flush() {
|
|
return false;
|
|
}
|
|
|
|
StreamInterface::StreamInterface() {}
|
|
|
|
} // namespace webrtc
|