MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / GetServerSocketPath

Function GetServerSocketPath

Source/Common/FEXServerClient.cpp:139–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139fextl::string GetServerSocketPath() {
140 FEX_CONFIG_OPT(ServerSocketPath, SERVERSOCKETPATH);
141
142 auto name = ServerSocketPath();
143
144 if (name.starts_with("/")) {
145 return name;
146 }
147
148 auto Folder = GetTempFolder();
149
150 if (name.empty()) {
151 return fextl::fmt::format("{}/{}.FEXServer.Socket", Folder, ::geteuid());
152 } else {
153 return fextl::fmt::format("{}/{}", Folder, name);
154 }
155}
156
157int GetServerFD() {
158 return ServerFD;

Callers 2

ConnectToServerFunction · 0.85
InitializeServerSocketFunction · 0.85

Calls 2

GetTempFolderFunction · 0.85
formatFunction · 0.85

Tested by

no test coverage detected