summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/Makefile
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-27 10:21:25 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-27 10:32:40 +0200
commitb3fe9cde523eac6f545270446078a6c6866820e1 (patch)
treef04306e3ded363922fad9784cf8e5732d3934b88 /Libraries/LibCore/Makefile
parent9b7e1eb287f8aa6c807303bf221e5498c8964960 (diff)
downloadserenity-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/Makefile1
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 \