aboutsummaryrefslogtreecommitdiff
path: root/src/core/internal_network/socket_proxy.h
diff options
context:
space:
mode:
authorcirakg <cirakg@cirakg.xyz>2026-11-03 01:19:59 +0100
committercirakg <cirakg@cirakg.xyz>2026-11-03 01:19:59 +0100
commit10e0c2a8b5074a8e0bb73bfc50d753b60d13f43d (patch)
treec0862d16323a895f4488691aba65995d210d87c9 /src/core/internal_network/socket_proxy.h
parentc85a2c2d021e5337cf27ebd91a0f1e3d9f628de3 (diff)
parent507c36374d3bab1c036ec11f80776c9842153479 (diff)
Merge branch 'fix/room-proxy-recv' into nx2
Diffstat (limited to 'src/core/internal_network/socket_proxy.h')
-rw-r--r--src/core/internal_network/socket_proxy.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/internal_network/socket_proxy.h b/src/core/internal_network/socket_proxy.h
index caf5d1ee23..5d6e35693c 100644
--- a/src/core/internal_network/socket_proxy.h
+++ b/src/core/internal_network/socket_proxy.h
@@ -1,10 +1,11 @@
-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
+#include <condition_variable>
#include <mutex>
#include <span>
#include <vector>
@@ -89,9 +90,12 @@ private:
SockAddrIn local_endpoint{};
bool blocking = true;
std::queue<ProxyPacket> received_packets;
- Protocol protocol;
+ std::size_t front_read_offset = 0; ///< Bytes of the front TCP packet that were already read
+ Protocol protocol{};
+ Type socket_type{}; ///< Stream checks use the type, since protocol 0 means the default protocol
std::mutex packets_mutex;
+ std::condition_variable packets_cv;
};
} // namespace Network