1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

Userland: Rename IPC::ServerConnection=>IPC::ConnectionToServer

This was done with CLion's automatic rename feature.
This commit is contained in:
Itamar 2022-02-25 12:27:37 +02:00 committed by Andreas Kling
parent 3a71748e5d
commit d88da82e28
26 changed files with 53 additions and 53 deletions

View file

@ -262,7 +262,7 @@ void ServerConnectionWrapper::try_respawn_connection()
if (!m_respawn_allowed) if (!m_respawn_allowed)
return; return;
dbgln("Respawning ServerConnection"); dbgln("Respawning ConnectionToServer");
create_connection(); create_connection();
// After respawning the language-server, we have to send the content of open project files // After respawning the language-server, we have to send the content of open project files

View file

@ -15,7 +15,7 @@
#include <AK/Weakable.h> #include <AK/Weakable.h>
#include <LibCore/ElapsedTimer.h> #include <LibCore/ElapsedTimer.h>
#include <LibCpp/Preprocessor.h> #include <LibCpp/Preprocessor.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <DevTools/HackStudio/LanguageServers/LanguageClientEndpoint.h> #include <DevTools/HackStudio/LanguageServers/LanguageClientEndpoint.h>
#include <DevTools/HackStudio/LanguageServers/LanguageServerEndpoint.h> #include <DevTools/HackStudio/LanguageServers/LanguageServerEndpoint.h>
@ -26,13 +26,13 @@ class LanguageClient;
class ServerConnectionWrapper; class ServerConnectionWrapper;
class ServerConnection class ServerConnection
: public IPC::ServerConnection<LanguageClientEndpoint, LanguageServerEndpoint> : public IPC::ConnectionToServer<LanguageClientEndpoint, LanguageServerEndpoint>
, public LanguageClientEndpoint { , public LanguageClientEndpoint {
friend class ServerConnectionWrapper; friend class ServerConnectionWrapper;
public: public:
ServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, const String& project_path) ServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, const String& project_path)
: IPC::ServerConnection<LanguageClientEndpoint, LanguageServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<LanguageClientEndpoint, LanguageServerEndpoint>(*this, move(socket))
{ {
m_project_path = project_path; m_project_path = project_path;
async_greet(m_project_path); async_greet(m_project_path);

View file

@ -10,7 +10,7 @@
#include <AK/LexicalPath.h> #include <AK/LexicalPath.h>
#include <DevTools/HackStudio/LanguageServers/LanguageClientEndpoint.h> #include <DevTools/HackStudio/LanguageServers/LanguageClientEndpoint.h>
#include <DevTools/HackStudio/LanguageServers/LanguageServerEndpoint.h> #include <DevTools/HackStudio/LanguageServers/LanguageServerEndpoint.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#define LANGUAGE_CLIENT(language_name_, socket_name) \ #define LANGUAGE_CLIENT(language_name_, socket_name) \
namespace language_name_ { \ namespace language_name_ { \

View file

@ -8,12 +8,12 @@
#include <InspectorServer/InspectorClientEndpoint.h> #include <InspectorServer/InspectorClientEndpoint.h>
#include <InspectorServer/InspectorServerEndpoint.h> #include <InspectorServer/InspectorServerEndpoint.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
namespace Inspector { namespace Inspector {
class InspectorServerClient final class InspectorServerClient final
: public IPC::ServerConnection<InspectorClientEndpoint, InspectorServerEndpoint> : public IPC::ConnectionToServer<InspectorClientEndpoint, InspectorServerEndpoint>
, public InspectorClientEndpoint { , public InspectorClientEndpoint {
IPC_CLIENT_CONNECTION(InspectorServerClient, "/tmp/portal/inspector") IPC_CLIENT_CONNECTION(InspectorServerClient, "/tmp/portal/inspector")
@ -22,7 +22,7 @@ public:
private: private:
InspectorServerClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) InspectorServerClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<InspectorClientEndpoint, InspectorServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<InspectorClientEndpoint, InspectorServerEndpoint>(*this, move(socket))
{ {
} }
}; };

View file

@ -15,7 +15,7 @@ namespace Audio {
static timespec g_enqueue_wait_time { 0, 10'000'000 }; static timespec g_enqueue_wait_time { 0, 10'000'000 };
ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) ConnectionFromClient::ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<AudioClientEndpoint, AudioServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -8,14 +8,14 @@
#include <AudioServer/AudioClientEndpoint.h> #include <AudioServer/AudioClientEndpoint.h>
#include <AudioServer/AudioServerEndpoint.h> #include <AudioServer/AudioServerEndpoint.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
namespace Audio { namespace Audio {
class Buffer; class Buffer;
class ConnectionFromClient final class ConnectionFromClient final
: public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint> : public IPC::ConnectionToServer<AudioClientEndpoint, AudioServerEndpoint>
, public AudioClientEndpoint { , public AudioClientEndpoint {
IPC_CLIENT_CONNECTION(ConnectionFromClient, "/tmp/portal/audio") IPC_CLIENT_CONNECTION(ConnectionFromClient, "/tmp/portal/audio")
public: public:

View file

@ -11,12 +11,12 @@
#include <LibCore/File.h> #include <LibCore/File.h>
#include <LibCore/Promise.h> #include <LibCore/Promise.h>
#include <LibCore/StandardPaths.h> #include <LibCore/StandardPaths.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
namespace Config { namespace Config {
class Client final class Client final
: public IPC::ServerConnection<ConfigClientEndpoint, ConfigServerEndpoint> : public IPC::ConnectionToServer<ConfigClientEndpoint, ConfigServerEndpoint>
, public ConfigClientEndpoint { , public ConfigClientEndpoint {
IPC_CLIENT_CONNECTION(Client, "/tmp/portal/config") IPC_CLIENT_CONNECTION(Client, "/tmp/portal/config")
@ -40,7 +40,7 @@ public:
private: private:
explicit Client(NonnullOwnPtr<Core::Stream::LocalSocket> socket) explicit Client(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<ConfigClientEndpoint, ConfigServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<ConfigClientEndpoint, ConfigServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -9,7 +9,7 @@
#include <LaunchServer/LaunchClientEndpoint.h> #include <LaunchServer/LaunchClientEndpoint.h>
#include <LaunchServer/LaunchServerEndpoint.h> #include <LaunchServer/LaunchServerEndpoint.h>
#include <LibDesktop/Launcher.h> #include <LibDesktop/Launcher.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <stdlib.h> #include <stdlib.h>
namespace Desktop { namespace Desktop {
@ -34,12 +34,12 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe
} }
class LaunchServerConnection final class LaunchServerConnection final
: public IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint> : public IPC::ConnectionToServer<LaunchClientEndpoint, LaunchServerEndpoint>
, public LaunchClientEndpoint { , public LaunchClientEndpoint {
IPC_CLIENT_CONNECTION(LaunchServerConnection, "/tmp/portal/launch") IPC_CLIENT_CONNECTION(LaunchServerConnection, "/tmp/portal/launch")
private: private:
LaunchServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket) LaunchServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<LaunchClientEndpoint, LaunchServerEndpoint>(*this, move(socket))
{ {
} }
}; };

View file

@ -13,14 +13,14 @@
#include <LibCore/Promise.h> #include <LibCore/Promise.h>
#include <LibCore/StandardPaths.h> #include <LibCore/StandardPaths.h>
#include <LibGUI/Window.h> #include <LibGUI/Window.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
namespace FileSystemAccessClient { namespace FileSystemAccessClient {
using Result = ErrorOr<NonnullRefPtr<Core::File>>; using Result = ErrorOr<NonnullRefPtr<Core::File>>;
class Client final class Client final
: public IPC::ServerConnection<FileSystemAccessClientEndpoint, FileSystemAccessServerEndpoint> : public IPC::ConnectionToServer<FileSystemAccessClientEndpoint, FileSystemAccessServerEndpoint>
, public FileSystemAccessClientEndpoint { , public FileSystemAccessClientEndpoint {
IPC_CLIENT_CONNECTION(Client, "/tmp/portal/filesystemaccess") IPC_CLIENT_CONNECTION(Client, "/tmp/portal/filesystemaccess")
@ -37,7 +37,7 @@ protected:
private: private:
explicit Client(NonnullOwnPtr<Core::Stream::LocalSocket> socket) explicit Client(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<FileSystemAccessClientEndpoint, FileSystemAccessServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<FileSystemAccessClientEndpoint, FileSystemAccessServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -9,18 +9,18 @@
#include <Clipboard/ClipboardServerEndpoint.h> #include <Clipboard/ClipboardServerEndpoint.h>
#include <LibGUI/Clipboard.h> #include <LibGUI/Clipboard.h>
#include <LibGfx/Bitmap.h> #include <LibGfx/Bitmap.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
namespace GUI { namespace GUI {
class ClipboardServerConnection final class ClipboardServerConnection final
: public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint> : public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>
, public ClipboardClientEndpoint { , public ClipboardClientEndpoint {
IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard")
private: private:
ClipboardServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket) ClipboardServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -5,14 +5,14 @@
*/ */
#include <LibGUI/Notification.h> #include <LibGUI/Notification.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <NotificationServer/NotificationClientEndpoint.h> #include <NotificationServer/NotificationClientEndpoint.h>
#include <NotificationServer/NotificationServerEndpoint.h> #include <NotificationServer/NotificationServerEndpoint.h>
namespace GUI { namespace GUI {
class NotificationServerConnection final class NotificationServerConnection final
: public IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint> : public IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint>
, public NotificationClientEndpoint { , public NotificationClientEndpoint {
IPC_CLIENT_CONNECTION(NotificationServerConnection, "/tmp/portal/notify") IPC_CLIENT_CONNECTION(NotificationServerConnection, "/tmp/portal/notify")
@ -26,7 +26,7 @@ public:
private: private:
explicit NotificationServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, Notification* notification) explicit NotificationServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, Notification* notification)
: IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint>(*this, move(socket))
, m_notification(notification) , m_notification(notification)
{ {
} }

View file

@ -6,7 +6,7 @@
#pragma once #pragma once
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <WindowServer/ScreenLayout.h> #include <WindowServer/ScreenLayout.h>
#include <WindowServer/WindowManagerClientEndpoint.h> #include <WindowServer/WindowManagerClientEndpoint.h>
#include <WindowServer/WindowManagerServerEndpoint.h> #include <WindowServer/WindowManagerServerEndpoint.h>
@ -14,7 +14,7 @@
namespace GUI { namespace GUI {
class WindowManagerServerConnection final class WindowManagerServerConnection final
: public IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint> : public IPC::ConnectionToServer<WindowManagerClientEndpoint, WindowManagerServerEndpoint>
, public WindowManagerClientEndpoint { , public WindowManagerClientEndpoint {
IPC_CLIENT_CONNECTION(WindowManagerServerConnection, "/tmp/portal/wm") IPC_CLIENT_CONNECTION(WindowManagerServerConnection, "/tmp/portal/wm")
@ -23,7 +23,7 @@ public:
private: private:
WindowManagerServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket) WindowManagerServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<WindowManagerClientEndpoint, WindowManagerServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -42,7 +42,7 @@ static void set_system_theme_from_anonymous_buffer(Core::AnonymousBuffer buffer)
} }
WindowServerConnection::WindowServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket) WindowServerConnection::WindowServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<WindowClientEndpoint, WindowServerEndpoint>(*this, move(socket))
{ {
// NOTE: WindowServer automatically sends a "fast_greet" message to us when we connect. // 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. // All we have to do is wait for it to arrive. This avoids a round-trip during application startup.

View file

@ -6,7 +6,7 @@
#pragma once #pragma once
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <WindowServer/ScreenLayout.h> #include <WindowServer/ScreenLayout.h>
#include <WindowServer/WindowClientEndpoint.h> #include <WindowServer/WindowClientEndpoint.h>
#include <WindowServer/WindowServerEndpoint.h> #include <WindowServer/WindowServerEndpoint.h>
@ -14,7 +14,7 @@
namespace GUI { namespace GUI {
class WindowServerConnection final class WindowServerConnection final
: public IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint> : public IPC::ConnectionToServer<WindowClientEndpoint, WindowServerEndpoint>
, public WindowClientEndpoint { , public WindowClientEndpoint {
IPC_CLIENT_CONNECTION(WindowServerConnection, "/tmp/portal/window") IPC_CLIENT_CONNECTION(WindowServerConnection, "/tmp/portal/window")
public: public:

View file

@ -25,14 +25,14 @@ public:
} }
template<typename ClientEndpoint, typename ServerEndpoint> template<typename ClientEndpoint, typename ServerEndpoint>
class ServerConnection : public IPC::Connection<ClientEndpoint, ServerEndpoint> class ConnectionToServer : public IPC::Connection<ClientEndpoint, ServerEndpoint>
, public ClientEndpoint::Stub , public ClientEndpoint::Stub
, public ServerEndpoint::template Proxy<ClientEndpoint> { , public ServerEndpoint::template Proxy<ClientEndpoint> {
public: public:
using ClientStub = typename ClientEndpoint::Stub; using ClientStub = typename ClientEndpoint::Stub;
using IPCProxy = typename ServerEndpoint::template Proxy<ClientEndpoint>; using IPCProxy = typename ServerEndpoint::template Proxy<ClientEndpoint>;
ServerConnection(ClientStub& local_endpoint, NonnullOwnPtr<Core::Stream::LocalSocket> socket) ConnectionToServer(ClientStub& local_endpoint, NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: Connection<ClientEndpoint, ServerEndpoint>(local_endpoint, move(socket)) : Connection<ClientEndpoint, ServerEndpoint>(local_endpoint, move(socket))
, ServerEndpoint::template Proxy<ClientEndpoint>(*this, {}) , ServerEndpoint::template Proxy<ClientEndpoint>(*this, {})
{ {

View file

@ -10,7 +10,7 @@
namespace ImageDecoderClient { namespace ImageDecoderClient {
Client::Client(NonnullOwnPtr<Core::Stream::LocalSocket> socket) Client::Client(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<ImageDecoderClientEndpoint, ImageDecoderServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<ImageDecoderClientEndpoint, ImageDecoderServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -9,7 +9,7 @@
#include <AK/HashMap.h> #include <AK/HashMap.h>
#include <ImageDecoder/ImageDecoderClientEndpoint.h> #include <ImageDecoder/ImageDecoderClientEndpoint.h>
#include <ImageDecoder/ImageDecoderServerEndpoint.h> #include <ImageDecoder/ImageDecoderServerEndpoint.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
namespace ImageDecoderClient { namespace ImageDecoderClient {
@ -25,7 +25,7 @@ struct DecodedImage {
}; };
class Client final class Client final
: public IPC::ServerConnection<ImageDecoderClientEndpoint, ImageDecoderServerEndpoint> : public IPC::ConnectionToServer<ImageDecoderClientEndpoint, ImageDecoderServerEndpoint>
, public ImageDecoderClientEndpoint { , public ImageDecoderClientEndpoint {
IPC_CLIENT_CONNECTION(Client, "/tmp/portal/image"); IPC_CLIENT_CONNECTION(Client, "/tmp/portal/image");

View file

@ -11,7 +11,7 @@
namespace Protocol { namespace Protocol {
RequestClient::RequestClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) RequestClient::RequestClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<RequestClientEndpoint, RequestServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<RequestClientEndpoint, RequestServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -7,7 +7,7 @@
#pragma once #pragma once
#include <AK/HashMap.h> #include <AK/HashMap.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <RequestServer/RequestClientEndpoint.h> #include <RequestServer/RequestClientEndpoint.h>
#include <RequestServer/RequestServerEndpoint.h> #include <RequestServer/RequestServerEndpoint.h>
@ -16,7 +16,7 @@ namespace Protocol {
class Request; class Request;
class RequestClient final class RequestClient final
: public IPC::ServerConnection<RequestClientEndpoint, RequestServerEndpoint> : public IPC::ConnectionToServer<RequestClientEndpoint, RequestServerEndpoint>
, public RequestClientEndpoint { , public RequestClientEndpoint {
IPC_CLIENT_CONNECTION(RequestClient, "/tmp/portal/request") IPC_CLIENT_CONNECTION(RequestClient, "/tmp/portal/request")

View file

@ -10,7 +10,7 @@
namespace Protocol { namespace Protocol {
WebSocketClient::WebSocketClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) WebSocketClient::WebSocketClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<WebSocketClientEndpoint, WebSocketServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<WebSocketClientEndpoint, WebSocketServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -7,7 +7,7 @@
#pragma once #pragma once
#include <AK/HashMap.h> #include <AK/HashMap.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <WebSocket/WebSocketClientEndpoint.h> #include <WebSocket/WebSocketClientEndpoint.h>
#include <WebSocket/WebSocketServerEndpoint.h> #include <WebSocket/WebSocketServerEndpoint.h>
@ -16,7 +16,7 @@ namespace Protocol {
class WebSocket; class WebSocket;
class WebSocketClient final class WebSocketClient final
: public IPC::ServerConnection<WebSocketClientEndpoint, WebSocketServerEndpoint> : public IPC::ConnectionToServer<WebSocketClientEndpoint, WebSocketServerEndpoint>
, public WebSocketClientEndpoint { , public WebSocketClientEndpoint {
IPC_CLIENT_CONNECTION(WebSocketClient, "/tmp/portal/websocket") IPC_CLIENT_CONNECTION(WebSocketClient, "/tmp/portal/websocket")

View file

@ -6,14 +6,14 @@
#pragma once #pragma once
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <SQLServer/SQLClientEndpoint.h> #include <SQLServer/SQLClientEndpoint.h>
#include <SQLServer/SQLServerEndpoint.h> #include <SQLServer/SQLServerEndpoint.h>
namespace SQL { namespace SQL {
class SQLClient class SQLClient
: public IPC::ServerConnection<SQLClientEndpoint, SQLServerEndpoint> : public IPC::ConnectionToServer<SQLClientEndpoint, SQLServerEndpoint>
, public SQLClientEndpoint { , public SQLClientEndpoint {
IPC_CLIENT_CONNECTION(SQLClient, "/tmp/portal/sql") IPC_CLIENT_CONNECTION(SQLClient, "/tmp/portal/sql")
virtual ~SQLClient(); virtual ~SQLClient();
@ -28,7 +28,7 @@ class SQLClient
private: private:
SQLClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) SQLClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<SQLClientEndpoint, SQLServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<SQLClientEndpoint, SQLServerEndpoint>(*this, move(socket))
{ {
} }

View file

@ -12,7 +12,7 @@
namespace Web { namespace Web {
WebContentClient::WebContentClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket, OutOfProcessWebView& view) WebContentClient::WebContentClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket, OutOfProcessWebView& view)
: IPC::ServerConnection<WebContentClientEndpoint, WebContentServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<WebContentClientEndpoint, WebContentServerEndpoint>(*this, move(socket))
, m_view(view) , m_view(view)
{ {
} }

View file

@ -7,7 +7,7 @@
#pragma once #pragma once
#include <AK/HashMap.h> #include <AK/HashMap.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <LibWeb/Cookie/ParsedCookie.h> #include <LibWeb/Cookie/ParsedCookie.h>
#include <WebContent/WebContentClientEndpoint.h> #include <WebContent/WebContentClientEndpoint.h>
#include <WebContent/WebContentServerEndpoint.h> #include <WebContent/WebContentServerEndpoint.h>
@ -17,7 +17,7 @@ namespace Web {
class OutOfProcessWebView; class OutOfProcessWebView;
class WebContentClient final class WebContentClient final
: public IPC::ServerConnection<WebContentClientEndpoint, WebContentServerEndpoint> : public IPC::ConnectionToServer<WebContentClientEndpoint, WebContentServerEndpoint>
, public WebContentClientEndpoint { , public WebContentClientEndpoint {
IPC_CLIENT_CONNECTION(WebContentClient, "/tmp/portal/webcontent"); IPC_CLIENT_CONNECTION(WebContentClient, "/tmp/portal/webcontent");

View file

@ -8,12 +8,12 @@
#include <Clipboard/ClipboardClientEndpoint.h> #include <Clipboard/ClipboardClientEndpoint.h>
#include <Clipboard/ClipboardServerEndpoint.h> #include <Clipboard/ClipboardServerEndpoint.h>
#include <LibGfx/Bitmap.h> #include <LibGfx/Bitmap.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#pragma once #pragma once
class ClipboardServerConnection final class ClipboardServerConnection final
: public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint> : public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>
, public ClipboardClientEndpoint { , public ClipboardClientEndpoint {
IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard")
@ -24,7 +24,7 @@ public:
private: private:
ClipboardServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket) ClipboardServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, move(socket)) : IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, move(socket))
{ {
} }
virtual void clipboard_data_changed(String const&) override virtual void clipboard_data_changed(String const&) override

View file

@ -7,7 +7,7 @@
#include "SpiceAgent.h" #include "SpiceAgent.h"
#include <LibC/fcntl.h> #include <LibC/fcntl.h>
#include <LibCore/System.h> #include <LibCore/System.h>
#include <LibIPC/ServerConnection.h> #include <LibIPC/ConnectionToServer.h>
#include <LibMain/Main.h> #include <LibMain/Main.h>
static constexpr auto SPICE_DEVICE = "/dev/hvc0p1"sv; static constexpr auto SPICE_DEVICE = "/dev/hvc0p1"sv;