diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-27 10:21:25 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-27 10:32:40 +0200 |
commit | b3fe9cde523eac6f545270446078a6c6866820e1 (patch) | |
tree | f04306e3ded363922fad9784cf8e5732d3934b88 /Libraries/LibCore/Makefile | |
parent | 9b7e1eb287f8aa6c807303bf221e5498c8964960 (diff) | |
download | serenity-b3fe9cde523eac6f545270446078a6c6866820e1.zip |
LibCore: Add CLocalServer, a server-only local socket class.
Instead of trying to support both client and server in CLocalSocket, let's
have a specialized server class.
The basic usage is:
CLocalServer server;
server.listen("/tmp/name-of-portal");
server.on_ready_to_accept = [&] {
CLocalSocket* client = server.accept();
...
};
This will make things a lot simpler, since an accepting socket doesn't need
half of the stuff that a regular CIODevice provides. :^)
Diffstat (limited to 'Libraries/LibCore/Makefile')
-rw-r--r-- | Libraries/LibCore/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibCore/Makefile b/Libraries/LibCore/Makefile index 9c169d1520..5c714cd84a 100644 --- a/Libraries/LibCore/Makefile +++ b/Libraries/LibCore/Makefile @@ -7,6 +7,7 @@ OBJS = \ CFile.o \ CSocket.o \ CLocalSocket.o \ + CLocalServer.o \ CTCPSocket.o \ CElapsedTimer.o \ CNotifier.o \ |