1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

LibCore: Port CoreIPCServer to using CLocalServer.

Use CLocalServer to listen for connections in WindowServer and AudioServer.
This allows us to accept incoming CLocalSocket objects from the CLocalServer
and construct client connections based on those.

Removed COpenedSocket since it's replaced by CLocalSocket.
This commit is contained in:
Andreas Kling 2019-07-27 10:53:50 +02:00
parent c289e49ee5
commit fe45f5a6d2
9 changed files with 40 additions and 93 deletions

View file

@ -2,8 +2,8 @@
#include <AK/ByteBuffer.h>
#include <LibCore/CEventLoop.h>
#include <LibCore/CLocalServer.h>
#include <LibCore/CNotifier.h>
#include <LibCore/CLocalSocket.h>
class WSClientConnection;
struct WSAPI_ClientMessage;
@ -16,7 +16,6 @@ public:
int exec() { return m_event_loop.exec(); }
private:
void drain_server();
void drain_mouse();
void drain_keyboard();
@ -25,6 +24,6 @@ private:
OwnPtr<CNotifier> m_keyboard_notifier;
int m_mouse_fd { -1 };
OwnPtr<CNotifier> m_mouse_notifier;
CLocalSocket m_server_sock;
CLocalServer m_server_sock;
OwnPtr<CNotifier> m_server_notifier;
};