mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
LibIPC: Stop sending client ID to clients
The client ID is not useful to normal clients anymore, so stop telling everyone what their ID is.
This commit is contained in:
parent
a5bbe3280d
commit
1ce03f4f34
29 changed files with 27 additions and 42 deletions
|
@ -36,8 +36,7 @@ ClientConnection::ClientConnection()
|
|||
|
||||
void ClientConnection::handshake()
|
||||
{
|
||||
auto response = send_sync<Messages::AudioServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::AudioServer::Greet>();
|
||||
}
|
||||
|
||||
void ClientConnection::enqueue(const Buffer& buffer)
|
||||
|
|
|
@ -60,8 +60,7 @@ class LaunchServerConnection : public IPC::ServerConnection<LaunchClientEndpoint
|
|||
public:
|
||||
virtual void handshake() override
|
||||
{
|
||||
auto response = send_sync<Messages::LaunchServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::LaunchServer::Greet>();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -39,8 +39,7 @@ class ClipboardServerConnection : public IPC::ServerConnection<ClipboardClientEn
|
|||
public:
|
||||
virtual void handshake() override
|
||||
{
|
||||
auto response = send_sync<Messages::ClipboardServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::ClipboardServer::Greet>();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -37,8 +37,7 @@ class NotificationServerConnection : public IPC::ServerConnection<NotificationCl
|
|||
public:
|
||||
virtual void handshake() override
|
||||
{
|
||||
auto response = send_sync<Messages::NotificationServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::NotificationServer::Greet>();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -63,7 +63,6 @@ static void set_system_theme_from_anonymous_buffer(Core::AnonymousBuffer buffer)
|
|||
void WindowServerConnection::handshake()
|
||||
{
|
||||
auto response = send_sync<Messages::WindowServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
set_system_theme_from_anonymous_buffer(response->theme_buffer());
|
||||
Desktop::the().did_receive_screen_rect({}, response->screen_rect());
|
||||
}
|
||||
|
|
|
@ -49,17 +49,11 @@ public:
|
|||
|
||||
virtual void handshake() = 0;
|
||||
|
||||
void set_my_client_id(int id) { m_my_client_id = id; }
|
||||
int my_client_id() const { return m_my_client_id; }
|
||||
|
||||
virtual void die() override
|
||||
{
|
||||
// Override this function if you don't want your app to exit if it loses the connection.
|
||||
exit(0);
|
||||
}
|
||||
|
||||
private:
|
||||
int m_my_client_id { -1 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -37,8 +37,7 @@ Client::Client()
|
|||
|
||||
void Client::handshake()
|
||||
{
|
||||
auto response = send_sync<Messages::ImageDecoderServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::ImageDecoderServer::Greet>();
|
||||
}
|
||||
|
||||
void Client::handle(const Messages::ImageDecoderClient::Dummy&)
|
||||
|
|
|
@ -38,8 +38,7 @@ Client::Client()
|
|||
|
||||
void Client::handshake()
|
||||
{
|
||||
auto response = send_sync<Messages::ProtocolServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::ProtocolServer::Greet>();
|
||||
}
|
||||
|
||||
bool Client::is_supported_protocol(const String& protocol)
|
||||
|
|
|
@ -45,8 +45,7 @@ void WebContentClient::die()
|
|||
|
||||
void WebContentClient::handshake()
|
||||
{
|
||||
auto response = send_sync<Messages::WebContentServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::WebContentServer::Greet>();
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidPaint& message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue