summaryrefslogtreecommitdiff
path: root/Services/ProtocolServer/ClientConnection.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-12 11:44:00 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-12 14:49:29 +0200
commitaba793fb3e1096cd05867cb9217226f93975e33f (patch)
treefa29878a96f7d5de54297283e1752dfeac635061 /Services/ProtocolServer/ClientConnection.cpp
parent633e0bc9443aaa248fcc7faa583304ae5215755f (diff)
downloadserenity-aba793fb3e1096cd05867cb9217226f93975e33f.zip
LibIPC: Share most of the code between {Client,Server}Connection
This patch introduces IPC::Connection which becomes the new base class of ClientConnection and ServerConnection. Most of the functionality has been hoisted up to the base class since almost all of it is useful on both sides. This gives us the ability to send synchronous messages in both directions, which is needed for the WebContent server process. Unlike other servers, WebContent does not mind blocking on a response from its client.
Diffstat (limited to 'Services/ProtocolServer/ClientConnection.cpp')
-rw-r--r--Services/ProtocolServer/ClientConnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/ProtocolServer/ClientConnection.cpp b/Services/ProtocolServer/ClientConnection.cpp
index a33baf2973..beaa55c4e1 100644
--- a/Services/ProtocolServer/ClientConnection.cpp
+++ b/Services/ProtocolServer/ClientConnection.cpp
@@ -36,7 +36,7 @@ namespace ProtocolServer {
static HashMap<int, RefPtr<ClientConnection>> s_connections;
ClientConnection::ClientConnection(NonnullRefPtr<Core::LocalSocket> socket, int client_id)
- : IPC::ClientConnection<ProtocolServerEndpoint>(*this, move(socket), client_id)
+ : IPC::ClientConnection<ProtocolClientEndpoint, ProtocolServerEndpoint>(*this, move(socket), client_id)
{
s_connections.set(client_id, *this);
}