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:
parent
5d4ee0f58a
commit
4a37bec27c
16 changed files with 254 additions and 275 deletions
|
@ -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>>;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue