diff --git a/Userland/DevTools/HackStudio/LanguageClient.cpp b/Userland/DevTools/HackStudio/LanguageClient.cpp index 89678cfb38..53b5632b34 100644 --- a/Userland/DevTools/HackStudio/LanguageClient.cpp +++ b/Userland/DevTools/HackStudio/LanguageClient.cpp @@ -262,7 +262,7 @@ void ServerConnectionWrapper::try_respawn_connection() if (!m_respawn_allowed) return; - dbgln("Respawning ServerConnection"); + dbgln("Respawning ConnectionToServer"); create_connection(); // After respawning the language-server, we have to send the content of open project files diff --git a/Userland/DevTools/HackStudio/LanguageClient.h b/Userland/DevTools/HackStudio/LanguageClient.h index f66d272697..2151ae3d25 100644 --- a/Userland/DevTools/HackStudio/LanguageClient.h +++ b/Userland/DevTools/HackStudio/LanguageClient.h @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include @@ -26,13 +26,13 @@ class LanguageClient; class ServerConnectionWrapper; class ServerConnection - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public LanguageClientEndpoint { friend class ServerConnectionWrapper; public: ServerConnection(NonnullOwnPtr socket, const String& project_path) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { m_project_path = project_path; async_greet(m_project_path); diff --git a/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h b/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h index 7618676a65..a5e1496d28 100644 --- a/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h +++ b/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include #define LANGUAGE_CLIENT(language_name_, socket_name) \ namespace language_name_ { \ diff --git a/Userland/DevTools/Inspector/InspectorServerClient.h b/Userland/DevTools/Inspector/InspectorServerClient.h index f30c6a7a99..8ce73d7c0a 100644 --- a/Userland/DevTools/Inspector/InspectorServerClient.h +++ b/Userland/DevTools/Inspector/InspectorServerClient.h @@ -8,12 +8,12 @@ #include #include -#include +#include namespace Inspector { class InspectorServerClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public InspectorClientEndpoint { IPC_CLIENT_CONNECTION(InspectorServerClient, "/tmp/portal/inspector") @@ -22,7 +22,7 @@ public: private: InspectorServerClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } }; diff --git a/Userland/Libraries/LibAudio/ConnectionFromClient.cpp b/Userland/Libraries/LibAudio/ConnectionFromClient.cpp index 74d0c907c7..ae5ee7210b 100644 --- a/Userland/Libraries/LibAudio/ConnectionFromClient.cpp +++ b/Userland/Libraries/LibAudio/ConnectionFromClient.cpp @@ -15,7 +15,7 @@ namespace Audio { static timespec g_enqueue_wait_time { 0, 10'000'000 }; ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibAudio/ConnectionFromClient.h b/Userland/Libraries/LibAudio/ConnectionFromClient.h index f84243cf6f..7210353075 100644 --- a/Userland/Libraries/LibAudio/ConnectionFromClient.h +++ b/Userland/Libraries/LibAudio/ConnectionFromClient.h @@ -8,14 +8,14 @@ #include #include -#include +#include namespace Audio { class Buffer; class ConnectionFromClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public AudioClientEndpoint { IPC_CLIENT_CONNECTION(ConnectionFromClient, "/tmp/portal/audio") public: diff --git a/Userland/Libraries/LibConfig/Client.h b/Userland/Libraries/LibConfig/Client.h index c24ee043fa..99d45a2fc6 100644 --- a/Userland/Libraries/LibConfig/Client.h +++ b/Userland/Libraries/LibConfig/Client.h @@ -11,12 +11,12 @@ #include #include #include -#include +#include namespace Config { class Client final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ConfigClientEndpoint { IPC_CLIENT_CONNECTION(Client, "/tmp/portal/config") @@ -40,7 +40,7 @@ public: private: explicit Client(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibDesktop/Launcher.cpp b/Userland/Libraries/LibDesktop/Launcher.cpp index fed12f699e..606827e6fa 100644 --- a/Userland/Libraries/LibDesktop/Launcher.cpp +++ b/Userland/Libraries/LibDesktop/Launcher.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include namespace Desktop { @@ -34,12 +34,12 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe } class LaunchServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public LaunchClientEndpoint { IPC_CLIENT_CONNECTION(LaunchServerConnection, "/tmp/portal/launch") private: LaunchServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } }; diff --git a/Userland/Libraries/LibFileSystemAccessClient/Client.h b/Userland/Libraries/LibFileSystemAccessClient/Client.h index 759e15de03..c50e342e86 100644 --- a/Userland/Libraries/LibFileSystemAccessClient/Client.h +++ b/Userland/Libraries/LibFileSystemAccessClient/Client.h @@ -13,14 +13,14 @@ #include #include #include -#include +#include namespace FileSystemAccessClient { using Result = ErrorOr>; class Client final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public FileSystemAccessClientEndpoint { IPC_CLIENT_CONNECTION(Client, "/tmp/portal/filesystemaccess") @@ -37,7 +37,7 @@ protected: private: explicit Client(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibGUI/Clipboard.cpp b/Userland/Libraries/LibGUI/Clipboard.cpp index 9e1cb1a287..a548451055 100644 --- a/Userland/Libraries/LibGUI/Clipboard.cpp +++ b/Userland/Libraries/LibGUI/Clipboard.cpp @@ -9,18 +9,18 @@ #include #include #include -#include +#include namespace GUI { class ClipboardServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ClipboardClientEndpoint { IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") private: ClipboardServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibGUI/Notification.cpp b/Userland/Libraries/LibGUI/Notification.cpp index 0f7e4207cb..90bbd928bf 100644 --- a/Userland/Libraries/LibGUI/Notification.cpp +++ b/Userland/Libraries/LibGUI/Notification.cpp @@ -5,14 +5,14 @@ */ #include -#include +#include #include #include namespace GUI { class NotificationServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public NotificationClientEndpoint { IPC_CLIENT_CONNECTION(NotificationServerConnection, "/tmp/portal/notify") @@ -26,7 +26,7 @@ public: private: explicit NotificationServerConnection(NonnullOwnPtr socket, Notification* notification) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) , m_notification(notification) { } diff --git a/Userland/Libraries/LibGUI/WindowManagerServerConnection.h b/Userland/Libraries/LibGUI/WindowManagerServerConnection.h index db9c3d5f79..b2f890e0c8 100644 --- a/Userland/Libraries/LibGUI/WindowManagerServerConnection.h +++ b/Userland/Libraries/LibGUI/WindowManagerServerConnection.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include #include #include @@ -14,7 +14,7 @@ namespace GUI { class WindowManagerServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WindowManagerClientEndpoint { IPC_CLIENT_CONNECTION(WindowManagerServerConnection, "/tmp/portal/wm") @@ -23,7 +23,7 @@ public: private: WindowManagerServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibGUI/WindowServerConnection.cpp b/Userland/Libraries/LibGUI/WindowServerConnection.cpp index 5498ffa0db..aa5094c9f5 100644 --- a/Userland/Libraries/LibGUI/WindowServerConnection.cpp +++ b/Userland/Libraries/LibGUI/WindowServerConnection.cpp @@ -42,7 +42,7 @@ static void set_system_theme_from_anonymous_buffer(Core::AnonymousBuffer buffer) } WindowServerConnection::WindowServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { // NOTE: WindowServer automatically sends a "fast_greet" message to us when we connect. // All we have to do is wait for it to arrive. This avoids a round-trip during application startup. diff --git a/Userland/Libraries/LibGUI/WindowServerConnection.h b/Userland/Libraries/LibGUI/WindowServerConnection.h index 065f28f01d..43fc3cd00b 100644 --- a/Userland/Libraries/LibGUI/WindowServerConnection.h +++ b/Userland/Libraries/LibGUI/WindowServerConnection.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include #include #include @@ -14,7 +14,7 @@ namespace GUI { class WindowServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WindowClientEndpoint { IPC_CLIENT_CONNECTION(WindowServerConnection, "/tmp/portal/window") public: diff --git a/Userland/Libraries/LibIPC/ServerConnection.h b/Userland/Libraries/LibIPC/ConnectionToServer.h similarity index 91% rename from Userland/Libraries/LibIPC/ServerConnection.h rename to Userland/Libraries/LibIPC/ConnectionToServer.h index 394f8b6630..38994155dd 100644 --- a/Userland/Libraries/LibIPC/ServerConnection.h +++ b/Userland/Libraries/LibIPC/ConnectionToServer.h @@ -25,14 +25,14 @@ public: } template -class ServerConnection : public IPC::Connection +class ConnectionToServer : public IPC::Connection , public ClientEndpoint::Stub , public ServerEndpoint::template Proxy { public: using ClientStub = typename ClientEndpoint::Stub; using IPCProxy = typename ServerEndpoint::template Proxy; - ServerConnection(ClientStub& local_endpoint, NonnullOwnPtr socket) + ConnectionToServer(ClientStub& local_endpoint, NonnullOwnPtr socket) : Connection(local_endpoint, move(socket)) , ServerEndpoint::template Proxy(*this, {}) { diff --git a/Userland/Libraries/LibImageDecoderClient/Client.cpp b/Userland/Libraries/LibImageDecoderClient/Client.cpp index 417e6869e3..766902bf20 100644 --- a/Userland/Libraries/LibImageDecoderClient/Client.cpp +++ b/Userland/Libraries/LibImageDecoderClient/Client.cpp @@ -10,7 +10,7 @@ namespace ImageDecoderClient { Client::Client(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibImageDecoderClient/Client.h b/Userland/Libraries/LibImageDecoderClient/Client.h index 7a4ac22148..0fc4572643 100644 --- a/Userland/Libraries/LibImageDecoderClient/Client.h +++ b/Userland/Libraries/LibImageDecoderClient/Client.h @@ -9,7 +9,7 @@ #include #include #include -#include +#include namespace ImageDecoderClient { @@ -25,7 +25,7 @@ struct DecodedImage { }; class Client final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ImageDecoderClientEndpoint { IPC_CLIENT_CONNECTION(Client, "/tmp/portal/image"); diff --git a/Userland/Libraries/LibProtocol/RequestClient.cpp b/Userland/Libraries/LibProtocol/RequestClient.cpp index 00fda42af0..3851f6b217 100644 --- a/Userland/Libraries/LibProtocol/RequestClient.cpp +++ b/Userland/Libraries/LibProtocol/RequestClient.cpp @@ -11,7 +11,7 @@ namespace Protocol { RequestClient::RequestClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibProtocol/RequestClient.h b/Userland/Libraries/LibProtocol/RequestClient.h index 74b4fc8b1e..190a766a26 100644 --- a/Userland/Libraries/LibProtocol/RequestClient.h +++ b/Userland/Libraries/LibProtocol/RequestClient.h @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include @@ -16,7 +16,7 @@ namespace Protocol { class Request; class RequestClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public RequestClientEndpoint { IPC_CLIENT_CONNECTION(RequestClient, "/tmp/portal/request") diff --git a/Userland/Libraries/LibProtocol/WebSocketClient.cpp b/Userland/Libraries/LibProtocol/WebSocketClient.cpp index 9a57235d60..43dccd76c2 100644 --- a/Userland/Libraries/LibProtocol/WebSocketClient.cpp +++ b/Userland/Libraries/LibProtocol/WebSocketClient.cpp @@ -10,7 +10,7 @@ namespace Protocol { WebSocketClient::WebSocketClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibProtocol/WebSocketClient.h b/Userland/Libraries/LibProtocol/WebSocketClient.h index 57a0e9c276..37226c4275 100644 --- a/Userland/Libraries/LibProtocol/WebSocketClient.h +++ b/Userland/Libraries/LibProtocol/WebSocketClient.h @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include @@ -16,7 +16,7 @@ namespace Protocol { class WebSocket; class WebSocketClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WebSocketClientEndpoint { IPC_CLIENT_CONNECTION(WebSocketClient, "/tmp/portal/websocket") diff --git a/Userland/Libraries/LibSQL/SQLClient.h b/Userland/Libraries/LibSQL/SQLClient.h index b6884e03ca..38279992cf 100644 --- a/Userland/Libraries/LibSQL/SQLClient.h +++ b/Userland/Libraries/LibSQL/SQLClient.h @@ -6,14 +6,14 @@ #pragma once -#include +#include #include #include namespace SQL { class SQLClient - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public SQLClientEndpoint { IPC_CLIENT_CONNECTION(SQLClient, "/tmp/portal/sql") virtual ~SQLClient(); @@ -28,7 +28,7 @@ class SQLClient private: SQLClient(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp index 770fed6e65..9220a61775 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.cpp +++ b/Userland/Libraries/LibWeb/WebContentClient.cpp @@ -12,7 +12,7 @@ namespace Web { WebContentClient::WebContentClient(NonnullOwnPtr socket, OutOfProcessWebView& view) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) , m_view(view) { } diff --git a/Userland/Libraries/LibWeb/WebContentClient.h b/Userland/Libraries/LibWeb/WebContentClient.h index 14ded8ebf1..cea2774b96 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.h +++ b/Userland/Libraries/LibWeb/WebContentClient.h @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include @@ -17,7 +17,7 @@ namespace Web { class OutOfProcessWebView; class WebContentClient final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public WebContentClientEndpoint { IPC_CLIENT_CONNECTION(WebContentClient, "/tmp/portal/webcontent"); diff --git a/Userland/Services/SpiceAgent/ClipboardServerConnection.h b/Userland/Services/SpiceAgent/ClipboardServerConnection.h index 3e29de5ee0..c580bb429c 100644 --- a/Userland/Services/SpiceAgent/ClipboardServerConnection.h +++ b/Userland/Services/SpiceAgent/ClipboardServerConnection.h @@ -8,12 +8,12 @@ #include #include #include -#include +#include #pragma once class ClipboardServerConnection final - : public IPC::ServerConnection + : public IPC::ConnectionToServer , public ClipboardClientEndpoint { IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") @@ -24,7 +24,7 @@ public: private: ClipboardServerConnection(NonnullOwnPtr socket) - : IPC::ServerConnection(*this, move(socket)) + : IPC::ConnectionToServer(*this, move(socket)) { } virtual void clipboard_data_changed(String const&) override diff --git a/Userland/Services/SpiceAgent/main.cpp b/Userland/Services/SpiceAgent/main.cpp index e94fb99669..c77803ece4 100644 --- a/Userland/Services/SpiceAgent/main.cpp +++ b/Userland/Services/SpiceAgent/main.cpp @@ -7,7 +7,7 @@ #include "SpiceAgent.h" #include #include -#include +#include #include static constexpr auto SPICE_DEVICE = "/dev/hvc0p1"sv;