1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:37:34 +00:00

LibIPC: Rename base classes to IClientConnection and IServerConnection

This matches what we're already calling the server-side subclasses
better, though we'll probably want to find some better names for the
client-side classes eventually.
This commit is contained in:
Andreas Kling 2019-12-02 09:58:25 +01:00
parent 5d4ee0f58a
commit 4a37bec27c
16 changed files with 254 additions and 275 deletions

View file

@ -42,7 +42,7 @@ WSClientConnection* WSClientConnection::from_client_id(int client_id)
}
WSClientConnection::WSClientConnection(CLocalSocket& client_socket, int client_id)
: ConnectionNG(*this, client_socket, client_id)
: IClientConnection(*this, client_socket, client_id)
{
if (!s_connections)
s_connections = new HashMap<int, NonnullRefPtr<WSClientConnection>>;

View file

@ -15,7 +15,7 @@ class WSMenu;
class WSMenuBar;
class WSClientConnection final
: public IPC::Server::ConnectionNG<WindowServerEndpoint>
: public IClientConnection<WindowServerEndpoint>
, public WindowServerEndpoint {
C_OBJECT(WSClientConnection)
public:

View file

@ -37,7 +37,7 @@ WSEventLoop::WSEventLoop()
}
static int s_next_client_id = 0;
int client_id = ++s_next_client_id;
IPC::Server::new_connection_ng_for_client<WSClientConnection>(*client_socket, client_id);
new_client_connection<WSClientConnection>(*client_socket, client_id);
};
ASSERT(m_keyboard_fd >= 0);