mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 21:00:17 +02:00
Abstract sockets have one limitation: they are bound to a network namespace. Chromium/CEF sandboxes using a new netns, which breaks connecting to the FEXServer. To work around this, use and try *both* abstract and named sockets. As long as either the filesystem or the network is unsandboxed, things will work. If both are sandboxed, there isn't much we can do... but at that point we shouldn't be reinitializing the FEXServer connection anyway since the FS should be available on FEXInterpreter startup.
12 lines
298 B
C++
12 lines
298 B
C++
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace ProcessPipe {
|
|
bool InitializeServerPipe();
|
|
bool InitializeServerSocket(bool abstract);
|
|
void WaitForRequests();
|
|
void SetConfiguration(bool Foreground, uint32_t PersistentTimeout);
|
|
void Shutdown();
|
|
} // namespace ProcessPipe
|