mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:27:35 +00:00
LibIPC: Store local endpoint magic in a ConnectionBase member
This simplifies some of the code, since it's no longer necessary for the templated code to pass LocalEndpoint::static_magic() everywhere.
This commit is contained in:
parent
9a8bdf84c8
commit
24642861af
3 changed files with 20 additions and 17 deletions
|
@ -30,7 +30,7 @@ public:
|
|||
, m_client_id(client_id)
|
||||
{
|
||||
VERIFY(this->socket().is_connected());
|
||||
this->socket().on_ready_to_read = [this] { this->drain_messages_from_peer(ServerEndpoint::static_magic()); };
|
||||
this->socket().on_ready_to_read = [this] { this->drain_messages_from_peer(); };
|
||||
}
|
||||
|
||||
virtual ~ClientConnection() override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue