diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /third_party/libwebrtc/rtc_base/async_tcp_socket.h | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/rtc_base/async_tcp_socket.h')
-rw-r--r-- | third_party/libwebrtc/rtc_base/async_tcp_socket.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/third_party/libwebrtc/rtc_base/async_tcp_socket.h b/third_party/libwebrtc/rtc_base/async_tcp_socket.h index 541080fba7..d3aff60520 100644 --- a/third_party/libwebrtc/rtc_base/async_tcp_socket.h +++ b/third_party/libwebrtc/rtc_base/async_tcp_socket.h @@ -13,8 +13,10 @@ #include <stddef.h> +#include <cstdint> #include <memory> +#include "api/array_view.h" #include "rtc_base/async_packet_socket.h" #include "rtc_base/buffer.h" #include "rtc_base/socket.h" @@ -37,7 +39,8 @@ class AsyncTCPSocketBase : public AsyncPacketSocket { int Send(const void* pv, size_t cb, const rtc::PacketOptions& options) override = 0; - virtual void ProcessInput(char* data, size_t* len) = 0; + // Must return the number of bytes processed. + virtual size_t ProcessInput(rtc::ArrayView<const uint8_t> data) = 0; SocketAddress GetLocalAddress() const override; SocketAddress GetRemoteAddress() const override; @@ -99,7 +102,7 @@ class AsyncTCPSocket : public AsyncTCPSocketBase { int Send(const void* pv, size_t cb, const rtc::PacketOptions& options) override; - void ProcessInput(char* data, size_t* len) override; + size_t ProcessInput(rtc::ArrayView<const uint8_t>) override; }; class AsyncTcpListenSocket : public AsyncListenSocket { |